Opened 3 years ago

Last modified 3 years ago

#21480 closed enhancement

Keep src/ clean by using --build-base when building sagelib — at Version 5

Reported by: mkoeppe Owned by:
Priority: blocker Milestone: sage-7.4
Component: build Keywords:
Cc: felixs, jdemeyer, fbissey, embray, leif, vbraun, dimpase, jhpalmieri, vdelecroix, saraedum, slabbe, nthiery, mmezzarobba Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by mkoeppe)

Currently, building sagelib creates the src/build directory, with subdirectories cython_debug, cythonized, lib.UNAME, temp.UNAME.

In preparation for VPATH builds of sage-the-distribution (#21469), let's keep src/ clean by using setup.py --build-base=$SAGE_BUILD_DIR/sagelib-VERSION

($SAGE_BUILD_DIR defaults to $SAGE_ROOT/var/tmp/sage/build/)

Change History (5)

comment:1 Changed 3 years ago by fbissey

Am interesting issue is that technically cython_debug has to be installed somewhere (preferably somewhere standard) to be accessible at runtime separately from the source.

I do something in sage-on-gentoo but that's not really satisfactory.

Last edited 3 years ago by fbissey (previous) (diff)

comment:2 in reply to: ↑ description ; follow-up: Changed 3 years ago by leif

Replying to mkoeppe:

In preparation for VPATH builds of sage-the-distribution (#21469), let's keep src/ clean by using setup.py --build-base=$SAGE_ROOT/var/tmp/sage/build/sagelib

Please use --build-base=$SAGE_BUILD_DIR/sagelib.

comment:3 Changed 3 years ago by leif

... and sagelib perhaps with a version suffix.

comment:4 in reply to: ↑ 2 Changed 3 years ago by mkoeppe

Replying to leif:

Replying to mkoeppe:

In preparation for VPATH builds of sage-the-distribution (#21469), let's keep src/ clean by using setup.py --build-base=$SAGE_ROOT/var/tmp/sage/build/sagelib

Please use --build-base=$SAGE_BUILD_DIR/sagelib.

Yes, the plan *after* #21469 is to use the Sage builddir -- not just for sagelib, but also for other packages.

*Before* #21469 is merged, I want to use $SAGE_ROOT/var/tmp/sage/build/sagelib to match what other packages do.

comment:5 Changed 3 years ago by mkoeppe

  • Description modified (diff)

Ah, I see what you meant, now I've found $SAGE_BUILD_DIR. Changed description accordingly.

Note: See TracTickets for help on using tickets.