Opened 21 months ago
Last modified 9 months ago
#30896 new enhancement
./configure withsagevenv=none
Reported by:  mkoeppe  Owned by:  

Priority:  major  Milestone:  sagewishlist 
Component:  build  Keywords:  sd111 
Cc:  dimpase, jhpalmieri, mjo, ghtobiasdiez  Merged in:  
Authors:  Reviewers:  
Report Upstream:  N/A  Work issues:  Rework as "withsagevenv=none" (implied by "withoutpython"), rebase on #31362 
Branch:  u/mkoeppe/__configure___without_python (Commits, GitHub, GitLab)  Commit:  932ebd8d85694dbd7b7164e65d7594b9dbfb94bb 
Dependencies:  #31362  Stopgaps: 
Description (last modified by )
(split out from #29013)
As of #32442, ./configure withsagevenv=no
just means: Keep SAGE_VENV the same as SAGE_LOCAL.
In this ticket we add support for a new option, perhaps ./configure withsagevenv=none
, which would suppress making any Python venv and suppress building any Python packages.
(Using the mechanism of disablable installation trees from #31356, #32759.)
In this configuration, sage_conf
cannot be built as a wheel, so we only build an sdist (using sagebootstrappython
!) and store that in $SAGE_LOCAL/var/lib/sage/wheels
.
Also, the default target allstart
makes no sense, and also the docbuild cannot be done. Instead, the default would be to build only the target allsage
(which would be modified to remove the unnecessary special case sagelib
).
This is for users who prefer to install Python packages into their own virtual environments using standard Python tools.
Change History (18)
comment:1 Changed 21 months ago by
 Cc mjo added
comment:2 Changed 21 months ago by
 Description modified (diff)
comment:3 Changed 21 months ago by
 Description modified (diff)
comment:4 Changed 21 months ago by
 Branch set to u/mkoeppe/__configure___without_python
comment:5 Changed 21 months ago by
 Commit set to e25b833e105a4296cc78ecefa507723e98515bc8
 Description modified (diff)
 Summary changed from ./configure withoutpython to ./configure withoutsagevenv
Last 10 new commits:
f9ac70e  Add installrequires.txt for setuptools, pip

f6a2c56  Merge tag '9.3.beta1' into t/30719/add_build_pkgs_spkg_install_requires_txt_for_all_python_packages

e61929d  build/pkgs/sphinx/installrequires.txt: Update from gentoo

8fe0e35  build/pkgs/python_openid: Unused, remove

ba1d913  build/pkgs/itsdangerous: Unused, remove

bb6c4ae  build/pkgs/tox/installrequires.txt: New

d507501  build/pkgs/networkx/installrequires.txt: Update from gentoo

c3a9352  build/pkgs/pathpy/installrequires.txt: Package removed in #30611, remove

ebd4610  build/pkgs/pynac/installrequires.txt: New

e25b833  Merge branch 't/30719/add_build_pkgs_spkg_install_requires_txt_for_all_python_packages' into t/30896/__configure___without_python

comment:6 Changed 21 months ago by
 Work issues set to Rework as "withoutsagevenv" (implied by "withoutpython")
comment:7 Changed 21 months ago by
 Description modified (diff)
comment:8 Changed 20 months ago by
 Keywords sd111 added
Hoping we can make progress on this ticket this week  https://wiki.sagemath.org/days111
comment:9 Changed 20 months ago by
 Cc ghtobiasdiez added
comment:10 Changed 20 months ago by
 Commit changed from e25b833e105a4296cc78ecefa507723e98515bc8 to 17869af2523f46e90aad5aa2bb9647e97e4eb901
comment:11 Changed 19 months ago by
 Dependencies changed from #30719 to #31263
comment:12 Changed 19 months ago by
 Commit changed from 17869af2523f46e90aad5aa2bb9647e97e4eb901 to 932ebd8d85694dbd7b7164e65d7594b9dbfb94bb
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
fec4b06  fix sage b after 30622

dff846c  go through make/build/install

8aff784  build/pkgs/python3/spkgconfigure.m4: Accept withpython=no

932ebd8  m4/sage_spkg_collect.m4: If configured withoutpython, mark all Python packages as not required

comment:13 Changed 18 months ago by
 Dependencies changed from #31263 to #31362
comment:14 Changed 18 months ago by
 Work issues changed from Rework as "withoutsagevenv" (implied by "withoutpython") to Rework as "withoutsagevenv" (implied by "withoutpython"), rebase on #31362
comment:15 Changed 17 months ago by
 Milestone changed from sage9.3 to sage9.4
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.
comment:16 Changed 13 months ago by
 Milestone changed from sage9.4 to sage9.5
comment:17 Changed 11 months ago by
 Description modified (diff)
 Milestone changed from sage9.5 to sagewishlist
 Summary changed from ./configure withoutsagevenv to ./configure withsagevenv=none
 Work issues changed from Rework as "withoutsagevenv" (implied by "withoutpython"), rebase on #31362 to Rework as "withsagevenv=none" (implied by "withoutpython"), rebase on #31362
comment:18 Changed 9 months ago by
 Description modified (diff)
To disable building Python packages, the make targets would be replaced by dummy targets in the same way as it is done for packages found by spkgconfigure.
In addition, this could go through #30383 ("configure disableSPKG" for standard packages) so that
configure
already shows that the build is disabled for Python packages.