Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sage optional package installs are very fragile -- need improvement or alternative #11484

Closed
sagetrac-ijstokes mannequin opened this issue Jun 14, 2011 · 3 comments
Closed

Comments

@sagetrac-ijstokes
Copy link
Mannequin

sagetrac-ijstokes mannequin commented Jun 14, 2011

I just tried installing a bunch of optional packages, not surprisingly (for me) I used:

for pkg in pkg1 pkg2 ... pkgN; do
sage -i $pkg
done | tee pkg-install.log

Some of these packages didn't install properly. No problem, I thought. I won't use them or I'll try to fix them later.

No such luck. My sage build is screwed, and I'm told there is no good way to back-out the install. It is hard to believe that the build/install process doesn't check that the package(s) built properly before putting them into Sage (lib, bin, site-packages, etc.) directories, but I'm told this is true. There appears to be no reliable way for me to back these out now.

What is the request? Either 1) that the process is improved to avoid this situation; or ii) that an alternative package management system is put in place. For the second point, someone provided me a link to this April 2011 sage-devel discussion topic:

https://groups.google.com/d/topic/sage-devel/XFJn3jGVBG8/discussion

Thanks,

Ian

Component: build

Reviewer: Jeroen Demeyer

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

@sagetrac-ijstokes sagetrac-ijstokes mannequin added this to the sage-5.11 milestone Jun 14, 2011
@sagetrac-ijstokes
Copy link
Mannequin Author

sagetrac-ijstokes mannequin commented Jun 17, 2011

comment:1

There was some discussion about this on #sagemath and wstein explained how this didn't even make sense, since an SPKG could do "rm -Rf /". I assume that any SPKG that is included as one of the listed optional or experimental SPKGs has gone through at least some kind of installation test before it is added to that list. If that is the case, then my suggestions can be condensed to these two points:

  1. That all listed packages (optional and experimental) have a trial install on at least one common Linux variant and one common OS X version (10.5 or 10.6). This would prevent the "rm -Rf /" type of SPKG being listed.

  2. That there be some kind of "uninstall" process to remove a package. If a single uninstall command is too much, then a documented process that is better than "read the SPKG details and work backwards" would still be helpful.

Ian

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@jdemeyer
Copy link

comment:3

You need to specify which package is problematic, otherwise this ticket will need to be closed as invalid because it's too vague.

@jdemeyer jdemeyer removed this from the sage-6.1 milestone Dec 29, 2013
@jdemeyer
Copy link

Reviewer: Jeroen Demeyer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants