diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-20 19:55:27 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-07-04 13:21:57 +0100 |
| commit | 199deb1d4cdaff5d1936ee8000f7a5a252830d96 (patch) | |
| tree | 369a5720c420c7667d9ec81eac404269779b5aa6 /setuptools | |
| parent | 03b06eef123cbbf22e21d1e7cb06a9c7503313bb (diff) | |
| download | python-setuptools-git-199deb1d4cdaff5d1936ee8000f7a5a252830d96.tar.gz | |
build_meta: execute code directly
The `exec` function in Python should be able to execute code directly.
Using `compile` and then `exec` seem to cause an overhead.
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/build_meta.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/build_meta.py b/setuptools/build_meta.py index 5dc65e2d..a0d46a79 100644 --- a/setuptools/build_meta.py +++ b/setuptools/build_meta.py @@ -171,7 +171,7 @@ class _BuildMetaBackend: with _open_setup_script(__file__) as f: code = f.read().replace(r'\r\n', r'\n') - exec(compile(code, __file__, 'exec'), locals()) + exec(code, locals()) def get_requires_for_build_wheel(self, config_settings=None): return self._get_build_requires( |
