#14492: Modular group cohomology, version 2.1.4
--------------------------------------+-------------------------------------
Reporter: SimonKing | Owner: tbd
Type: defect | Status: positive_review
Priority: major | Milestone: sage-5.10
Component: packages: optional | Resolution:
Keywords: group cohomology | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun
Authors: SimonKing | Merged in:
Dependencies: | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by SimonKing):
Replying to [comment:31 jdemeyer]:
> There is no error check for
> {{{
> python setup.py install
> }}}
> Perhaps this is why success is reported if Cython fails?
I thought this could be it. However, if I put the following into an spkg,
then the error is correctly reported, even though the exit code of
setup.py is not checked:
spkg-install:
{{{
#!/usr/bin/env bash
if [ "$SAGE_LOCAL" = "" ]; then
echo "SAGE_LOCAL undefined ... exiting";
echo "Maybe run 'sage -sh'?"
exit 1
fi
# test whether we are on an intel mac
if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
echo "64 bit MacIntel"
DARWIN64=-m64; export DARWIN64;
else
DARWIN64=""; export DARWIN64;
fi
cd src
DISTUTILS_DEBUG='debug'
python setup.py install
}}}
src/setup.py
{{{
#!python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import shutil
import os
import subprocess
setup(
name = "bad",
version = "0.0",
author = "Simon A. King",
author_email = "[email protected]",
maintainer = "Simon A. King",
maintainer_email = "[email protected]",
description = "A bad example",
ext_modules=[
Extension("bad",
sources = ["bad.pyx"],
),
],
cmdclass = {'build_ext': build_ext}
)
}}}
src/bad.pyx
{{{
#!python
import os
bad
}}}
If I remove the last line of src/bad.pyx, then the mock package does
install, and I can then do
{{{
sage: from bad import os
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14492#comment:37>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.