sagemath/sage

make setuptools actually respect the --egg-path argument

ohanar opened this issue · 15 comments

Currently if you specify the egg-path when using setuptools' setup.py develop, it still places the absolute path in easy_install.pth. This causes issues with relocation. Currently this only affects the sage notebook (which works around it by using a sed command), but with #13190 it will also affect the sage library. Since the easy_install.pth file is regenerated whenever setuptools detects that it needs to be, trying to use sed commands to work around this issue is unrealistic.

New SPKG: http://wstein.org/home/ohanar/spkgs/setuptools-0.6.16.p1.spkg

Upstream: Reported upstream. No feedback yet.

CC: @kini @slel

Component: build

Reviewer: Samuel Lelièvre

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

comment:1

I've attached an spkg which includes a work in progress patch that I intend to submit upstream once finished. It is currently functional for our purposes, hence the needs review.

Description changed:

--- 
+++ 
@@ -1 +1,3 @@
 Currently if you specify the egg-path when using setuptools' `setup.py develop`, it still places the absolute path in `easy_install.pth`. This causes issues with relocation. Currently this only affects the sage notebook (which works around it by using a sed command), but with #13190 it will also affect the sage library. Since the `easy_install.pth` file is regenerated whenever setuptools detects that it needs to be, trying to use sed commands to work around this issue is unrealistic.
+
+New SPKG: http://wstein.org/home/ohanar/spkgs/setuptools-0.6.16.p1.spkg

Author: R. Andrew Ohana

comment:2

Ok, I updated it with the actual patch I'm going to submit upstream, so there should be no hesitation on reviewing it now. Same URL.

Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. No feedback yet.

Changed upstream from Reported upstream. No feedback yet. to Not yet reported upstream; Will do shortly.

comment:4

And for distribute (which has more active development): https://bitbucket.org/tarek/distribute/issue/293/easy_installpth-doesnt-respect-develop-egg

Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. No feedback yet.

kini commented
comment:6

CCing myself since we should remove the sed stuff from the sagenb installer once this is in.

comment:11

What's the status here? No branch, for instance, though setuptools in Sage is now at 12.4.

comment:12

Outdated, should be closed

Changed author from R. Andrew Ohana to none

slel commented

Reviewer: Samuel Lelièvre

slel commented
comment:13

Let us close this.