#11851: make pybtex an optional spkg
------------------------------------------------+---------------------------
Reporter: ranosch | Owner: tbd
Type: task | Status: needs_review
Priority: major | Milestone: sage-5.1
Component: optional packages | Resolution:
Keywords: BibTeX citations | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Niels Ranosch, Burcin Erocal | Merged in:
Dependencies: | Stopgaps:
------------------------------------------------+---------------------------
Old description:
> See [http://pybtex.sourceforge.net/] for a description.
>
> Should be a standard spkg later, so that the
> [http://trac.sagemath.org/sage_trac/ticket/3317 citation system] can use
> it.
>
> ----
>
> Apply [attachment:trac_11851-hgignore.patch] to the scripts repo.
>
> New optional spkg: [http://ubuntuone.com/3IK8aG0mDDoxPopQZ5m0uM]
New description:
See [http://pybtex.sourceforge.net/] for a description.
Should be a standard spkg later, so that the
[http://trac.sagemath.org/sage_trac/ticket/3317 citation system] can use
it.
----
Apply [attachment:trac_11851-hgignore.patch] to the scripts repo.
New optional spkg: [http://ubuntuone.com/3q1Z2j3WDuucK71I0MxjAm]
--
Comment (by ranosch):
Replying to [comment:6 jhpalmieri]:
> This installed correctly, even though I disabled internet access while
installing it. So that's good.
>
> Regarding SPKG.txt: surely Python is a dependency. You should make this
explicit, so that if/when this becomes a standard package, people where it
goes in the makefile `spkg/standard/deps`. Also, I would add a little bit
to the description; for example, [...]
Thanks for checking, updated the spkg with your suggestions.
> When I ran this on a file, I got this error message:
> {{{
> amsplain.bst: %
> amsplain.bst: ^^^
> amsplain.bst: ERROR: Syntax error in line 333: BST command expected.
> }}}
> but maybe I don't have things configured correctly...
What exactly did you do? I cannot reproduce the error.
> It might be a good idea to write an spkg-check script, which does
nothing if `nose` is not installed, but runs self-tests if it is. This is
not very important right now, but if you have a chance...
I don't think that is possible. Maybe when nose becomes an
[http://trac.sagemath.org/sage_trac/ticket/9921 optional package]. But at
the moment, when nose is installed on the system, sage can run the
`nosetests` command, but python won't find nose:
{{{
Traceback (most recent call last):
File "/usr/bin/nosetests", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/niels/mfo/sage-5.0/local/lib/python2.7/site-
packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 2672, in
<module>
working_set.require(__requires__)
File "/home/niels/mfo/sage-5.0/local/lib/python2.7/site-
packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 655, in
require
needed = self.resolve(parse_requirements(requirements))
File "/home/niels/mfo/sage-5.0/local/lib/python2.7/site-
packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 553, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: nose==1.1.2
}}}
That error occurs when running `nosetests` in `sage -sh` or `spkg-check`
with nose installed on my system.
> Finally, you need an attachment for the scripts repository. See
attached.
Thanks, didn't know about that.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11851#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 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.