-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Update developer guide for SPKGs #12609
Comments
This comment has been minimized.
This comment has been minimized.
Author: John Palmieri |
This comment has been minimized.
This comment has been minimized.
comment:3
This is almost good, but you should also provide a way to check that a package has been installed, regardless of its version number. I was thinking along the lines of (not tested!)
|
comment:4
Here's a new version which uses grep. The fricas example works in my testing. |
comment:5
I guess you're missing a negation there (you're failing if the package is found). Don't use
should suffice. Your counterexample To be very safe, use |
comment:6
Okay, fixed. |
This comment has been minimized.
This comment has been minimized.
comment:7
Attachment: trac_12609-doc-developer.patch.gz |
Changed author from John Palmieri to John Palmieri, Jeroen Demeyer |
Reviewer: Jeroen Demeyer |
comment:8
Reviewer patch (apply on top of first patch) needs review. |
This comment has been minimized.
This comment has been minimized.
comment:9
I wouldn't mind a change like the following, but with or with this the reviewer patch gets a positive review. diff --git a/doc/en/developer/producing_spkgs.rst b/doc/en/developer/producing_spk
--- a/doc/en/developer/producing_spkgs.rst
+++ b/doc/en/developer/producing_spkgs.rst
@@ -34,7 +34,8 @@ Sage packages are distributed as ``.spkg
to discourage confusion. Although Sage packages are packed using tar
and/or bzip2, note that ``.spkg`` files contain control information
(installation scripts and metadata) that are necessary for building
-and installing them. When you compile Sage from a source distribution,
+and installing them. When you compile Sage from a source
+distribution, or when you run ``sage -i <pkg>`` or ``sage -f <pkg>``,
the file ``SAGE_ROOT/spkg/bin/sage-spkg`` takes care of the unpacking,
compilation, and installation of Sage packages for you. You can
type |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, John Palmieri |
Dependencies: #10492 |
comment:11
Attachment: 12609_review.patch.gz |
Merged: sage-5.0.beta10 |
This ticket is about updating the developer guide for #10492.
The developer guide suggests (http://sagemath.org/doc/developer/producing_spkgs.html#the-file-spkg-txt)
This is totally wrong. It only checks that a spkg exists, not that it has been installed. See #12608 for removing this wrong checking from PPL.
The patches below also include various fixes to "Producing New Sage Packages".
Apply attachment: trac_12609-doc-developer.patch and attachment: 12609_review.patch to the main Sage library.
Depends on #10492
Component: documentation
Author: John Palmieri, Jeroen Demeyer
Reviewer: Jeroen Demeyer, John Palmieri
Merged: sage-5.0.beta10
Issue created by migration from https://trac.sagemath.org/ticket/12609
The text was updated successfully, but these errors were encountered: