diff options
Diffstat (limited to 'internal/rosa/package/python/package.az')
| -rw-r--r-- | internal/rosa/package/python/package.az | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/internal/rosa/package/python/package.az b/internal/rosa/package/python/package.az index 40c12f74..b10d6cce 100644 --- a/internal/rosa/package/python/package.az +++ b/internal/rosa/package/python/package.az @@ -73,6 +73,76 @@ package python { ]; } +package python-early { + description = "minimal python interpreter exclusive to the bootstrap path"; + website = "https://www.python.org"; + exclude = true; + anitya = 13254; + block = "exclusive to the bootstrap path"; + + version# = "3.14.6"; + source = remoteTar { + url = "https://www.python.org/ftp/python/"+version+ + "/Python-"+version+".tgz"; + checksum = "yynwXnElUvlAweA_RkBKQY35P59Gu5YU6ickJs6Z-blIoHgw5KgKXROY1gq2w0ez"; + compress = gzip; + }; + + // test_synopsis_sourceless assumes this is writable and checks __pycache__ + writable = true; + chmod = true; + + env = [ + "EXTRATESTOPTS=-j0 -x " + join { + elems = [ + // requires internet access (http://www.pythontest.net/) + "test_asyncio", + "test_socket", + "test_urllib2", + "test_urllibnet", + "test_urllib2net", + + // makes assumptions about uid_map/gid_map + "test_os", + "test_subprocess", + + // insane strict_timestamps default + "test_zipfile", + + // requires gcc + "test_ctypes", + + // breaks on llvm + "test_dbm_gnu", + ]; + sep = " -x "; + }, + + // _ctypes appears to infer something from the linker name + "LDFLAGS=-Wl,--dynamic-linker=/system/lib/" + + "ld-musl-" + linuxArch + ".so.1", + ]; + + exec = make { + check = [ "test" ]; + postInstall = "ln -s python3 /work/system/bin/python"; + }; + + inputs = [ + zlib, + bzip2, + libffi, + + kernel-headers, + ]; + + runtime = [ + zlib, + bzip2, + libffi, + ]; +} + package python-setuptools { description = "the autotools of the Python ecosystem"; website = "https://pypi.org/project/setuptools"; |
