#11447: python spkg build fails on various Debian systems
---------------------------------------------------------+------------------
Reporter: pipedream | Owner:
jdemeyer
Type: defect | Status:
needs_review
Priority: blocker | Milestone:
sage-4.7.1
Component: packages | Keywords:
python spkg crypt library
Work_issues: | Upstream: N/A
Reviewer: David Kirkby, Bill Odefey, Jan Groenewald | Author: Jan
Medlock
Merged: | Dependencies:
---------------------------------------------------------+------------------
Comment(by leif):
Patch is up. Relevant part:
{{{
#!diff
diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -242,12 +248,28 @@
# All these modules are important and if any one
# fails to build, Sage will not work.
+import_errors=false
for module in math hashlib crypt ; do
"$SAGE_LOCAL/bin/python" -c "import $module"
if [ $? -eq 0 ] ; then
echo "$module module imported OK"
else
- echo "$module module failed to import"
- exit 1
+ echo >&2 "$module module failed to import"
+ import_errors=true
+ # exit 1 # not yet
fi
done
+
+if $import_errors; then
+ echo >&2 "Error: One or more modules failed to import."
+ # Check if we are on Debian or one of its derivatives:
+ if command -v dpkg && ! command -v dpkg-architecture >/dev/null; then
+ echo >&2 "You may have to install 'dpkg-architecture'"
+ echo >&2 "which is part of the Debian package 'dpkg-dev'."
+ echo >&2 "Try installing it by typing"
+ echo >&2 " sudo apt-get install dpkg-dev"
+ echo >&2 "and rerun 'make'."
+ fi
+ exit 1
+fi
}}}
'''I haven't uploaded the new spkg to G**gle code yet.'''
Maybe Jeroen wants to create it on `sage.math`. (My patch
[attachment:trac_11447-give_hint_on_dpkg-dev.patch] is based on the p11 I
previously uploaded.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11447#comment:34>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.