Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/setuptools: Use setuptools @ features/pep660
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jul 22, 2022
1 parent 6c1e4f9 commit eb75752
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/pkgs/sagelib/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ "$SAGE_EDITABLE" = yes ]; then
# and renamed the distribution to "sagemath-standard"). There is no clean way to uninstall
# them, so we just use rm.
(cd "$SITEPACKAGESDIR" && rm -rf sage sage_setup sage-[1-9]*.egg-info sage-[1-9]*.dist-info)
time python3 -m pip install --verbose --no-deps --no-index --no-build-isolation --isolated --editable . || exit 1
time python3 -m pip install --verbose --no-deps --no-index --find-links=$SAGE_SPKG_WHEELS --isolated --editable . || exit 1
else
# Likewise, we should remove the egg-link that may have been installed previously.
(cd "$SITEPACKAGESDIR" && rm -f sagemath-standard.egg-link)
Expand Down
8 changes: 4 additions & 4 deletions build/pkgs/setuptools/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tarball=setuptools-VERSION.tar.gz
sha1=2a5a4ac384ace22dd10e3dac0a1b6af49e03c596
md5=d72acb93671bde8e4ca0971866f9cdda
cksum=2262493785
upstream_url=https://pypi.io/packages/source/s/setuptools/setuptools-VERSION.tar.gz
sha1=8da4315b78a1fd0f3c089875166d11affa1a4c2c
md5=445195629eeff4711f61aaf98ea4486b
cksum=4015061417
upstream_url=https://github.com/pypa/setuptools/archive/49e21527f9e59ca881dab360e125bb2b17280694.zip
2 changes: 1 addition & 1 deletion build/pkgs/setuptools/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
setuptools >=49.6.0
setuptools
2 changes: 1 addition & 1 deletion build/pkgs/setuptools/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
63.2.0
63.2.0+pep660-2022-07-21
3 changes: 3 additions & 0 deletions build/pkgs/setuptools/spkg-install.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cd src
# Workaround for "cannot copy tree 'build/scripts-...'" when installing
# setuptools from the git archive - https://github.com/pypa/setuptools/issues/2586
python3 setup.py egg_info
# Use --single-version-externally-managed to prevent setuptools from installing itself with easy_install
python3 setup.py --no-user-cfg install \
--single-version-externally-managed --root="$SAGE_DESTDIR" || \
Expand Down

0 comments on commit eb75752

Please sign in to comment.