Commit Graph

46 Commits

Author SHA1 Message Date
Juniper Tyree 0980b51677
Implement PEP 658: .whl.metadata files (#3981) 2023-07-17 21:17:24 +09:00
Hood Chatham edddf21c7b
MAINT Improvements to mkpkg error handling (#3684)
Removes tracebacks from "user errors" and improves error messages.
2023-03-27 09:55:51 +09:00
Roman Yurchak 601d939fdd
Fix wheel compression with the JsDelivr CDN (#3667)
Set the MIME type for wheels and zip files to application/wasm to enable CDN compression. Also optionally disable compression in zip files and wheels to make the brotli compression by the CDN more efficient.

Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2023-03-21 09:11:47 +01:00
Roman Yurchak 59b2c4e1ef
Remove deprecated pyodide-build buildall and mkpkg CLI endpoints (#3668) 2023-03-20 08:43:04 +01:00
Gyeongjae Choi ed3ae1ba49
Download standard libraries in a zipfile (#3582) 2023-03-01 23:11:30 +01:00
Gyeongjae Choi 0709ec0a26
Split building and installing packages in buildall (#3279) 2022-12-15 13:43:39 +09:00
Joe Marshall 4a1913d3ad
build packages from pypi direct (#3196)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-11-17 10:05:14 +09:00
Gyeongjae Choi ad0064e2c4
BLD Install libraries to centralized directory (#2551) 2022-05-18 13:14:16 +09:00
Gyeongjae Choi 0c30f4bb27
BLD Fix pyodide-build installation when in Python virtual environment (#2416)
* Do not use prefix option when using virtual environment

* Remove prefix
2022-04-27 13:35:30 +09:00
Hood Chatham 50af355e8c
Rename 'build' directory to 'dist' (#2387)
dist is both more accurate (the 'build' directory is normally where you do the build,
and normally consists of intermediate build artifacts no one cares about). dist also
occurs less frequently in the code base: after this change \bbuild\b has 466 matches,
whereas \bdist\b has 101 matches. build has 1072 matches whereas dist has 362.
2022-04-11 16:01:40 -07:00
Gyeongjae Choi 60d530801e
ENH Remove hard coded paths in `pyodide_build` (#2351)
We are pushing pyodide_build to PyPI as a Python package, but for now, 
installing pyodide_build from PyPI (i.e. pip install pyodide_build`) is almost 
useless because:

    there are bunch of hard-coded paths (e.g. Path(__file__).parents[2]),
    its dependencies are not specified in setup.cfg.

This PR is for mitigating this situation by removing hard-coded paths and
adding tests, and is also a preparation for our new CLI 
(https://github.com/pyodide/pyodide/issues/1977).
2022-04-09 13:41:10 -07:00
Gyeongjae Choi b6555fb6b8
Move making archive of shared libraries to buildpkg (#2279)
Moves the logic of generating zip archive of a shared library from 
`buildall` to `buildpkg` so that thread-unsafe `shutil.make_archive` 
won't bother us anymore.
2022-03-16 08:00:11 -07:00
Hood Chatham c01ab547f0
Better package cross compilation (#2238)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-03-09 20:34:25 -08:00
Hood Chatham 8323987b39
Use wheels instead of file_packager (#2027) 2022-01-23 17:47:04 -08:00
Hood Chatham 79c6688535
Run pyodide-build update-all (#2085) 2022-01-10 11:54:11 -08:00
Hood Chatham 282fbedcad
MAINT Invoke pywasmcross via function calls (#2063) 2021-12-25 12:08:43 -08:00
Hood Chatham 6065bcd532
MAINT Clean up environment variables and pywasmcross (#2053) 2021-12-20 11:26:27 -08:00
LeoPsidom 4662024b56
Upgrade numpy to 1.21.4 (#1934) 2021-11-14 15:03:56 +01:00
Gyeongjae Choi 8dc6004637
FIX Explicitly use host Python version when building packages (#1924) 2021-11-05 22:22:10 +01:00
Hood Chatham 4cf245aa55
Add cffi package (#1761) 2021-08-01 16:12:14 +02:00
Hood Chatham 7760ce7ab8
ENH mkpkg update improvements (#1465) 2021-07-12 13:54:01 +02:00
Paul m. p. P d4a705bde2
Use PYMAJOR/PYMINOR according to Python devguide (#1570)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-07-06 13:28:39 +02:00
Hood Chatham b4f4bcffdc
Update to Python 3.9.5 (#1637)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-06-19 15:49:25 -07:00
Hood Chatham 9ffae14dbf
Store package build logs as circleci artifacts (#1646) 2021-06-19 09:51:36 -07:00
Hood Chatham af9bd035be
MAINT Update Makefile to repeat pip install pyodide_build and npm install less (#1599) 2021-05-22 15:19:46 -07:00
Roman Yurchak 4e9d10833e
BLD Create an installable pyodide-build package (#1566) 2021-05-03 20:51:11 +02:00
Roman Yurchak c66c866451
BLD Display package build time in logs (#1509) 2021-04-20 22:57:13 +02:00
Hood Chatham a88e8edd17
Minor improvements to build handling of PYODIDE_PACKAGES (#1341) 2021-03-20 19:00:35 +01:00
Dexter Chua ac3f1a358e
Build C libraries with the Python build system (#1027) 2021-01-03 22:09:40 +01:00
Dexter Chua 27e2800120
Use upstream file packager instead of fork (#991) 2021-01-01 08:48:28 +01:00
Dexter Chua 03447f9fff
Use newer docker image in run_docker (#848) 2020-12-12 11:31:53 +01:00
Dexter Chua 861746a675
Build packages in parallel (#840) 2020-12-10 20:37:08 +01:00
Dexter Chua 0defcb3825
BLD Don't compile host python (#830) 2020-12-08 00:19:16 +01:00
Dexter Chua d67648a6b8
BLD Update package build script's default ldflags (#817) 2020-12-03 14:27:40 +01:00
Sergio f03cf8b667
ENH Automate package updates (#569)
Co-authored-by: Sergio <sergio.martins@points.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-07-13 23:34:10 +02:00
Roman Yurchak fc5495ffdb
Update to Python 3.8.2 (#712)
* Updating to CPython 3.8

* More fixes

* Skip python headers check in tools/dependency-check.sh

* Fix checksum

* Fix packages

* Fix syntax error

* Fix benchmark path

* Update CPython tests

* More test fixes

* Fix PyStone

* More Cpython test fixes

* Update docs

* Fix issue in conftest

* Add documentation

* Upload updated Docker image
2020-07-07 16:21:33 +02:00
Roman Yurchak 5ba82b81f9 Add mechanism to build a subset of packages 2020-05-09 01:28:44 +02:00
Madhur Tandon a704d5a04b Implement the ABI number functionality.
Modified ``Makefile`` and ``packages/Makefile`` to get ``PYODIDE_PACKAGE_ABI`` from ``Makefile.envs``
Made ``checkABI`` as a public API function.
Modified ``file_packager.py`` to check for the compatible ABI number.
Defined ABI number with which pyodide is built in Makefile.envs
Accepted ABI number in ``file_packager.py`` as an argument.
Modified ``buildpkg.py`` and ``buildall.py`` to account for the new argument.
Added the corresponding ``test_different_ABI`` test.
2019-01-23 00:07:39 +05:30
Roman Yurchak 66fe5feb2c Better refactoring 2018-11-15 13:24:27 +01:00
Roman Yurchak 40605620f8 Use scipy 0.17.1 2018-11-15 13:22:36 +01:00
Roman Yurchak 3b429e61f3 Address review comments 2018-09-21 18:10:48 +02:00
Roman Yurchak da6bbb3b20 Set PYTHONPATH in Makefile.envs to avoiding installing pyodide_build 2018-09-21 12:02:13 +02:00
Roman Yurchak 72293058b9 Converting tools scripts to a python package 2018-09-20 18:44:30 +02:00
Roman Yurchak 4bd4cc3255 Avoid rm */build 2018-07-24 10:04:15 -07:00
Michael Droettboom 222c0248a1 Add documentation to new build tools.
Clean up argument parsing.
2018-06-22 10:22:00 -04:00
Michael Droettboom 17e1562ded MVP of a proper packaging system 2018-06-20 14:54:47 -04:00