crossenv
Advanced tools
| Metadata-Version: 1.2 | ||
| Name: crossenv | ||
| Version: 1.1.2 | ||
| Version: 1.1.3 | ||
| Summary: A cross-compiling tool for Python extension modules | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/benfogle/crossenv |
@@ -22,3 +22,3 @@ import venv | ||
| __version__ = '1.1.2' | ||
| __version__ = '1.1.3' | ||
@@ -25,0 +25,0 @@ logger = logging.getLogger(__name__) |
| # Patch the things that depend on os.environ or sys | ||
| # This is very similar to the sysconfig patch | ||
| project_base = {{repr(self.host_project_base)}} | ||
| # Only patch if get_config_vars was implemented in this module. Python 3.10 | ||
| # merged the implementations by importing from sysconfig, so we don't need to | ||
| # patch twice. | ||
| if get_config_vars.__module__ == __name__: | ||
| project_base = {{repr(self.host_project_base)}} | ||
| def get_makefile_filename(): | ||
| return {{repr(self.host_makefile)}} | ||
| def get_makefile_filename(): | ||
| return {{repr(self.host_makefile)}} | ||
| __real_init_posix = _init_posix | ||
| def _init_posix(): | ||
| old = os.environ.get('_PYTHON_SYSCONFIGDATA_NAME') | ||
| os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = {{repr(sysconfig_name)}} | ||
| try: | ||
| return __real_init_posix() | ||
| finally: | ||
| if old is None: | ||
| del os.environ['_PYTHON_SYSCONFIGDATA_NAME'] | ||
| else: | ||
| os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = old | ||
| __real_init_posix = _init_posix | ||
| def _init_posix(): | ||
| old = os.environ.get('_PYTHON_SYSCONFIGDATA_NAME') | ||
| os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = {{repr(sysconfig_name)}} | ||
| try: | ||
| return __real_init_posix() | ||
| finally: | ||
| if old is None: | ||
| del os.environ['_PYTHON_SYSCONFIGDATA_NAME'] | ||
| else: | ||
| os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = old | ||
| assert _config_vars is None, "sysconfig was set up prior to patching?" | ||
| assert _config_vars is None, "distutils.sysconfig was set up prior to patching?" | ||
| #vi: ft=python |
+1
-1
| Metadata-Version: 1.2 | ||
| Name: crossenv | ||
| Version: 1.1.2 | ||
| Version: 1.1.3 | ||
| Summary: A cross-compiling tool for Python extension modules | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/benfogle/crossenv |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
97525
0.29%