sagemath/sage

configure/make: Generate SAGE_ROOT/requirements-using-local-wheels.txt

mkoeppe opened this issue · 12 comments

This file is for setting up a separate venv, for example for installing a stable snapshot of what is in the current source tree.

Variant 1

  • just add --no-index --find-links=SAGE_ROOT/venv/var/lib/sage/wheels/ to the contents of src/requirements.txt

  • adds sagelib (always source location, but not editable)

  • if configure --enable-editable is in use, uses source locations (but not editable) for packages like sage_setup, sage_conf instead of wheels

Variant 1b

  • if configure --enable-editable is in use, require make wheels (from #33817)

Variant 2

  • basically the output of pip freeze (@ file:/// URLs, fixed as described in #30956)

We can also add a convenience script sage --venv /SOME/DIRECTORY for creating and populating the venv

Depends on #33817

CC: @tobiasdiez

Component: build

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

Description changed:

--- 
+++ 
@@ -1,3 +1,3 @@
-... which just adds `--no-index --find-links=../venv/local/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
+... which just adds `--no-index --find-links=../venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
 
 

Changed dependencies from #32442 to #32442, #32672

Description changed:

--- 
+++ 
@@ -1,3 +1,7 @@
-... which just adds `--no-index --find-links=../venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
+- which just adds `--no-index --find-links=../venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
+
+- adds sagelib 
+
+- if `configure --enable-editable` is in use, uses editable for packages like `sage_setup`, `sage_conf`
 
 

Description changed:

--- 
+++ 
@@ -1,7 +1,10 @@
-- which just adds `--no-index --find-links=../venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
+This file is for setting up a separate venv, for example for installing a stable snapshot of what is in the current source tree.
 
-- adds sagelib 
+- which just adds `--no-index --find-links=SAGE_ROOT/venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
 
-- if `configure --enable-editable` is in use, uses editable for packages like `sage_setup`, `sage_conf`
+- adds sagelib (always source location, but not editable)
+
+- if `configure --enable-editable` is in use, uses source locations (but not editable) for packages like `sage_setup`, `sage_conf`
+instead of wheels
 
 

Description changed:

--- 
+++ 
@@ -1,10 +1,13 @@
 This file is for setting up a separate venv, for example for installing a stable snapshot of what is in the current source tree.
 
-- which just adds `--no-index --find-links=SAGE_ROOT/venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
+Variant 1
+- just add `--no-index --find-links=SAGE_ROOT/venv/var/lib/sage/wheels/` to the contents of `src/requirements.txt`
 
 - adds sagelib (always source location, but not editable)
 
 - if `configure --enable-editable` is in use, uses source locations (but not editable) for packages like `sage_setup`, `sage_conf`
 instead of wheels
 
+Variant 2
+- basically the output of `pip freeze` (after the fix in #30956)
 

Description changed:

--- 
+++ 
@@ -5,8 +5,7 @@
 
 - adds sagelib (always source location, but not editable)
 
-- if `configure --enable-editable` is in use, uses source locations (but not editable) for packages like `sage_setup`, `sage_conf`
-instead of wheels
+- if `configure --enable-editable` is in use, uses source locations (but not editable) for packages like `sage_setup`, `sage_conf` instead of wheels
 
 Variant 2
 - basically the output of `pip freeze` (after the fix in #30956)
slel commented
comment:8

Remove dependency on #32442, see #29039 comment:163.

slel commented

Changed dependencies from #32442, #32672 to #32672

Changed dependencies from #32672 to #33817

Description changed:

--- 
+++ 
@@ -7,6 +7,11 @@
 
 - if `configure --enable-editable` is in use, uses source locations (but not editable) for packages like `sage_setup`, `sage_conf` instead of wheels
 
+Variant 1b
+
+- if `configure --enable-editable` is in use, require `make wheels` (from #33817)
+
 Variant 2
 - basically the output of `pip freeze` (after the fix in #30956)
 
+

Description changed:

--- 
+++ 
@@ -15,3 +15,4 @@
 - basically the output of `pip freeze` (after the fix in #30956)
 
 
+We can also add a convenience script `sage --venv /SOME/DIRECTORY` for creating and populating the venv

Description changed:

--- 
+++ 
@@ -12,7 +12,7 @@
 - if `configure --enable-editable` is in use, require `make wheels` (from #33817)
 
 Variant 2
-- basically the output of `pip freeze` (after the fix in #30956)
+- basically the output of `pip freeze` (`@ file:///` URLs, fixed as described in #30956)
 
 
 We can also add a convenience script `sage --venv /SOME/DIRECTORY` for creating and populating the venv