sagemath/sage

Remove direct use of "setup.py sdist", add targets "make SPKG-sdist"

mkoeppe opened this issue · 11 comments

Direct use of "setup.py sdist" is deprecated. Instead we use build to create the sdists.

We add new targets make sagemath_objects-sdist etc.

We move targets make pypi-sdists (which now uses the new targets), make wheel, and make pypi-wheels from the top-level Makefile to build/make/Makefile.in. This improves make pypi-wheels: It no longer builds the sagemath-objects wheel multiple times (as dependencies of other packages).

Depends on #34858

CC: @kiwifb

Component: build

Author: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/34855

New commits:

cc58c2dbuild/pkgs/sagelib/spkg-src: Use build
eee3f1aMakefile (pypi-sdists): Install python_build

Commit: eee3f1a

Dependencies: #34858

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

ef75d6asrc/MANIFEST.in: Add pxd files etc
2f4b053pkgs/sagemath-standard/setup.py: Run finder also for sdist, egg_info, dist_info
00deebepkgs/sagemath-objects/setup.py: Run finder also for sdist, egg_info, dist_info
39bd748src/sage/dynamics/arithmetic_dynamics/projective_ds.py: Remove unused import of typing_extensions
e229436Merge #34859
2b39b3dMerge #34858
c59622abuild/pkgs/sagemath*/spkg-src: Use build
7fc93d0build/pkgs/sagemath*/spkg-src: Use --skip-dependency-check
4940db4build/make/Makefile.in: Add targets SPKG-src for script packages
573fcfdbuild/make/Makefile.in: Move targets pypi-sdists, wheel, pypi-wheels here; use SPKG-sdist targets

Changed commit from eee3f1a to 573fcfd

Description changed:

--- 
+++ 
@@ -1,4 +1,7 @@
-Direct use of "setup.py sdist" is deprecated.
+Direct use of "setup.py sdist" is deprecated. Instead we use `build` to create the sdists.
 
-Instead we use `build` to create the sdists.
+We add new targets `make sagemath_objects-sdist` etc.
 
+We move targets `make pypi-sdists` (which now uses the new targets), `make wheel`, and `make pypi-wheels` from the top-level `Makefile` to `build/make/Makefile.in`. This improves `make pypi-wheels`: It no longer builds the sagemath-objects wheel multiple times (as dependencies of other packages).
+
+

Author: Matthias Koeppe

Branch pushed to git repo; I updated commit sha1. New commits:

0bd13acbuild/make/Makefile.in: Remove duplicate setting of PYPI_WHEEL_PACKAGES

Changed commit from 573fcfd to 0bd13ac

Removed branch from issue description; replaced by PR #35104