#6232: Consider CADO-NFS for inclusion
-------------------------------------------------+-------------------------
Reporter: malb | Owner: malb
Type: enhancement | Status: new
Priority: minor | Milestone: sage-
Component: packages: optional | wishlist
Keywords: linear algebra, factoring, | Resolution:
number theory | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by zimmerma):
thanks to Alexander Kruppa, the solution is to undefine the environment
variables PYTHONHOME and PYTHONPATH:
{{{
import subprocess, os
def my_exec_factor(nbr):
cmd = ['/tmp/cado-nfs-2.1.1/factor.sh', str(nbr)]
my_env = os.environ
if my_env.has_key("PYTHONHOME"):
my_env.pop("PYTHONHOME")
if my_env.has_key("PYTHONPATH"):
my_env.pop("PYTHONPATH")
process = subprocess.Popen(cmd, stderr=subprocess.STDOUT,
stdout=subprocess.PIPE, env=my_env)
output, unused_err = process.communicate()
retcode = process.poll()
if retcode:
print "Output :"
print output
raise subprocess.CalledProcessError(retcode, cmd)
return output
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/6232#comment:8>
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/d/optout.