crossenv
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: crossenv | ||
| Version: 1.2.0 | ||
| Version: 1.3.0 | ||
| Summary: A cross-compiling tool for Python extension modules | ||
@@ -8,4 +8,2 @@ Home-page: https://github.com/benfogle/crossenv | ||
| Author-email: benfogle@gmail.com | ||
| License: UNKNOWN | ||
| Platform: UNKNOWN | ||
| Classifier: Development Status :: 3 - Alpha | ||
@@ -199,3 +197,1 @@ Classifier: Intended Audience :: Developers | ||
| .. |coverage status| image:: https://img.shields.io/azure-devops/coverage/benfogle/crossenv/1/master | ||
+11
-1
@@ -22,3 +22,3 @@ import venv | ||
| __version__ = '1.2.0' | ||
| __version__ = '1.3.0' | ||
@@ -516,2 +516,12 @@ logger = logging.getLogger(__name__) | ||
| if self.host_sysname == "darwin": | ||
| self.sysconfig_platform = "macosx-%s-%s" % (self.macosx_deployment_target, | ||
| self.host_machine) | ||
| elif self.host_sysname == "linux": | ||
| # Use self.host_machine here as powerpc64le gets converted | ||
| # to ppc64le in self.host_machine | ||
| self.sysconfig_platform = "linux-%s" % (self.host_machine) | ||
| else: | ||
| self.sysconfig_platform = self.host_platform | ||
| def expand_manylinux_tags(self): | ||
@@ -518,0 +528,0 @@ """ |
@@ -13,16 +13,21 @@ # Patch the things that depend on os.environ or sys | ||
| __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 | ||
| try: | ||
| __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 | ||
| except NameError: | ||
| # setuptools >=61, removed _init_posix and fixes distutils.sysconfig | ||
| # to use sysconfig which we patch in sysconfig-patch.py | ||
| pass | ||
| assert _config_vars is None, "distutils.sysconfig was set up prior to patching?" | ||
| assert not _config_vars, "distutils.sysconfig was set up prior to patching?" | ||
| #vi: ft=python |
@@ -22,3 +22,3 @@ from collections import namedtuple | ||
| if machine == '': | ||
| machine = uname_result.machine | ||
| machine = _uname_result.machine | ||
| return release, versioninfo, machine | ||
@@ -25,0 +25,0 @@ |
@@ -109,2 +109,3 @@ # Import only what we absolutely need before the path fixup | ||
| 'distutils.sysconfig': '{{context.lib_path}}/distutils-sysconfig-patch.py', | ||
| 'distutils.sysconfig_pypy': '{{context.lib_path}}/distutils-sysconfig-patch.py', | ||
| 'platform': '{{context.lib_path}}/platform-patch.py', | ||
@@ -111,0 +112,0 @@ 'pkg_resources': '{{context.lib_path}}/pkg_resources-patch.py', |
@@ -17,5 +17,20 @@ # Patch the things that depend on os.environ | ||
| # On CPython patching _get_sysconfigdata_name is enough. | ||
| # On PyPy, we need to patch _init_posix, because pypy | ||
| # doesn't use _get_sysconfig_data_name in _init_posix | ||
| __real_init_posix = _init_posix | ||
| def _init_posix(*args, **kwargs): | ||
| old = os.environ.get('_PYTHON_SYSCONFIGDATA_NAME') | ||
| os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = {{repr(sysconfig_name)}} | ||
| try: | ||
| return __real_init_posix(*args, **kwargs) | ||
| finally: | ||
| if old is None: | ||
| del os.environ['_PYTHON_SYSCONFIGDATA_NAME'] | ||
| else: | ||
| os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = old | ||
| def get_platform(): | ||
| return {{repr(self.host_platform)}} | ||
| return {{repr(self.sysconfig_platform)}} | ||
| assert _CONFIG_VARS is None, "sysconfig was set up prior to patching?" |
+1
-5
| Metadata-Version: 2.1 | ||
| Name: crossenv | ||
| Version: 1.2.0 | ||
| Version: 1.3.0 | ||
| Summary: A cross-compiling tool for Python extension modules | ||
@@ -8,4 +8,2 @@ Home-page: https://github.com/benfogle/crossenv | ||
| Author-email: benfogle@gmail.com | ||
| License: UNKNOWN | ||
| Platform: UNKNOWN | ||
| Classifier: Development Status :: 3 - Alpha | ||
@@ -199,3 +197,1 @@ Classifier: Intended Audience :: Developers | ||
| .. |coverage status| image:: https://img.shields.io/azure-devops/coverage/benfogle/crossenv/1/master | ||
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
97630
1.35%1089
0.83%