#14804: transition to using install program
-------------------------------------------------+--------------------------
Reporter: felixs | Owner: tbd
Type: enhancement | Status: new
Priority: critical | Milestone: sage-5.12
Component: distribution | Resolution:
Keywords: spkg-install filelist destdir | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Felix Salfelder | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------+--------------------------
Comment (by leif):
Replying to [comment:5 felixs]:
> Replying to [comment:4 leif]:
> > as most Python objects are mutable, including functions / methods,
i.e., you can overwrite them... :-)
> > And you could e.g. do so in an spkg's `setup.py`, to use some
alternate implementation (provided elsewhere).
>
> I don't quite understand. Are you proposing to patch the upstream
package? (this would be worse, as it involves more than just distutils
patching).
>
> I need something of the kind
> {{{
> setup.py install USEMYOWNFILEUTIL
> }}}
> or
> {{{
> IMPORTPATH=myhackedfileutil_path setup.py install
> }}}
> within spkg-install. is this even possible?
Sure, I was just writing a post scriptum:
And in the latter case, you wouldn't even have to patch / modify the
spkg's / upstream's `setup.py`, but just `spkg-install` (or whatever that
will become), as you can also do things like
{{{
#!sh
python <<EOF
# Do some stuff, e.g. modifying distutils.file_util.*
# (preferably importing an alternate implementation located elsewhere)
import sys
sys.argv = ["setup.py", "install"]
execfile("setup.py")
EOF
}}}
Or just create a (shell) script that does similar, and call that instead
of doing `python setup.py install`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14804#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.