#6503: remove the pyprocessing spkg from sage, then sort out any fallout that
results
------------------------+---------------------------------------------------
Reporter: was | Owner: mabshoff
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-4.3.2
Component: packages | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Changes (by mvngu):
* status: needs_review => needs_work
Comment:
Here are the steps I took:
1. Applied
[http://trac.sagemath.org/sage_trac/attachment/ticket/6503/trac_6503-scripts.patch
trac_6503-scripts.patch] to the scripts repository.
1. Applied
[http://trac.sagemath.org/sage_trac/attachment/ticket/6503/trac_6503-sage.patch
trac_6503-sage.patch] to the Sage library.
1. Removed `pyprocessing-0.52.p0.spkg` from the standard spkg repository.
1. Removed the following lines from `spkg/install`:
{{{
PYPROCESSING=`$newest pyprocessing`
export PYPROCESSING
}}}
1. Changed the following line in `spkg/standard/deps`
{{{
$(INST)/$(ZNPOLY) $(INST)/$(POLYTOPES_DB) $(INST)/$(PYPROCESSING)
$(INST)/$(GHMM) \
}}}
to this line
{{{
$(INST)/$(ZNPOLY) $(INST)/$(POLYTOPES_DB) $(INST)/$(GHMM) \
}}}
Removed the lines:
{{{
$(INST)/$(PYPROCESSING): $(BASE) $(INST)/$(PYTHON)
$(SAGE_SPKG) $(PYPROCESSING) 2>&1
}}}
Removed the line:
{{{
$(INST)/$(PYPROCESSING) \
}}}
The above steps were implemented against Sage 4.3.2.alpha0. Afterwards, I
packaged up this version of Sage but with pyprocessing removed as per the
above instructions. I then built this version of Sage from source, but
received the following error:
{{{
building 'sage.ext.interpreters.wrapper_el' extension
Traceback (most recent call last):
File "setup.py", line 920, in <module>
include_dirs = include_dirs)
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/core.py",
line 152, in setup
dist.run_commands()
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/dist.py",
line 975, in run_commands
self.run_command(cmd)
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/dist.py",
line 995, in run_command
cmd_obj.run()
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/command/install.py",
line 577, in run
self.run_command('build')
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/dist.py",
line 995, in run_command
cmd_obj.run()
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/command/build.py",
line 134, in run
self.run_command(cmd_name)
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/dist.py",
line 995, in run_command
cmd_obj.run()
File
"/dev/shm/mvngu/sandbox/sage-4.3.2.alpha0-8115/local/lib/python/distutils/command/build_ext.py",
line 340, in run
self.build_extensions()
File "setup.py", line 323, in build_extensions
from processing import Pool
ImportError: No module named processing
sage: There was an error installing modified sage library code.
}}}
I also note that the file `devel/sage-main/setup.py` has these lines:
{{{
# If there were any extensions that needed to be
# rebuilt, dispatch them using pyprocessing.
if extensions_to_compile:
from processing import Pool
p = Pool(min(ncpus, len(extensions_to_compile)))
}}}
from line 320. It uses the pyprocessing spkg, when in fact this spkg has
been removed as per the proposal of this ticket. Perhaps this could be a
reason for the above build error I received. A fix is to change the above
lines to use multiprocessing instead of processing. I'm investigating this
approach, in addition to John's patches.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6503#comment:9>
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.