mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Begin incorporating Python unit tests into build
We now build a separate APE binary for each test so they can run in parallel. We've got 148 tests running fast and stable so far.
This commit is contained in:
parent
51904e2687
commit
b5f743cdc3
121 changed files with 4995 additions and 4767 deletions
6
third_party/python/Lib/sysconfig.py
vendored
6
third_party/python/Lib/sysconfig.py
vendored
|
@ -3,6 +3,7 @@
|
|||
import os
|
||||
import sys
|
||||
from os.path import pardir, realpath
|
||||
import _sysconfigdata_m_cosmo_x86_64_cosmo
|
||||
|
||||
__all__ = [
|
||||
'get_config_h_filename',
|
||||
|
@ -334,15 +335,16 @@ def get_makefile_filename():
|
|||
if _PYTHON_BUILD:
|
||||
return os.path.join(_sys_home or _PROJECT_BASE, "Makefile")
|
||||
if hasattr(sys, 'abiflags'):
|
||||
config_dir_name = 'config-%s%s' % (_PY_VERSION_SHORT, sys.abiflags)
|
||||
config_dir_name = 'config_%s%s' % (_PY_VERSION_SHORT, sys.abiflags)
|
||||
else:
|
||||
config_dir_name = 'config'
|
||||
if hasattr(sys.implementation, '_multiarch'):
|
||||
config_dir_name += '-%s' % sys.implementation._multiarch
|
||||
config_dir_name += '_%s' % sys.implementation._multiarch
|
||||
return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
|
||||
|
||||
|
||||
def _get_sysconfigdata_name():
|
||||
return '_sysconfigdata_m_cosmo_x86_64_cosmo'
|
||||
return os.environ.get('_PYTHON_SYSCONFIGDATA_NAME',
|
||||
'_sysconfigdata_{abi}_{platform}_{multiarch}'.format(
|
||||
abi=sys.abiflags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue