New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make pybtex an optional spkg #11851
Comments
comment:1
When I install the spkg on a Mac OS X box, I see this
Are these errors important? The installation proceeds, apparently successfully, after this. Second, would it be better to have three separate spkgs, one each for pybtex, PyYAML, and pyparsing? Third, should the file |
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to BibTeX citations |
comment:3
Thanks for looking into this! Replying to @jhpalmieri:
PyYAML Supports libYAML for speed reasons only, so you can ignore these messages. But I removed libYAML support from the SPKG (I will update the link soon), so that nobody gets confused.
sagenb also includes its dependencies. It would be too much trouble to maintain three different SPKGs.
We don't know, if the link will change or will be unavailable some day. Burcin thought, it would probably be safer like this. |
This comment has been minimized.
This comment has been minimized.
comment:4
Updated package not to support system-libYAML-bindings. Link is now http://sage.math.washington.edu/home/burcin/spkg/pybtex-0.15-r1.spkg @jhpalmieri: Would you mind to look at it again, please? The changes are available on https://bitbucket.org/niels_mfo/pybtex-0.15 |
comment:5
Upstream update. See SPKG.txt for more info. |
This comment has been minimized.
This comment has been minimized.
comment:6
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 diff --git a/SPKG.txt b/SPKG.txt
--- a/SPKG.txt
+++ b/SPKG.txt
@@ -2,7 +2,8 @@
== Description ==
-Pybtex is a drop-in replacement for BibTeX written in Python.
+Pybtex is a drop-in replacement for BibTeX written in Python. That is,
+you can run 'pybtex FILE' instead of 'bibtex FILE'.
We use the bazaar trunk because it is less buggy and more feature-rich.
The latest version is available through this command: When I ran this on a file, I got this error message:
but maybe I don't have things configured correctly... It might be a good idea to write an spkg-check script, which does nothing if Finally, you need an attachment for the scripts repository. See attached. |
Attachment: trac_11851-hgignore.patch.gz SAGE_ROOT/local/bin repo |
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @jhpalmieri:
Thanks for checking, updated the spkg with your suggestions.
What exactly did you do? I cannot reproduce the error.
I don't think that is possible. Maybe when nose becomes an optional package. But at the moment, when nose is installed on the system, sage can run the
That error occurs when running
Thanks, didn't know about that. |
This comment has been minimized.
This comment has been minimized.
comment:9
Regarding nose, I was thinking of something like this in spkg-check: if [ -x "$SAGE_LOCAL/bin/nosetests" ]; then
# RUN TESTS HERE.
if [ $? -ne 0 ]; then # REPLACE WITH SUITABLE CHECK THAT TESTS PASSED.
echo >&2 "Error running tests."
exit 1
fi
else
echo "Not running tests since nose is not installed."
fi Or you could replace the first line with a test for the suitable library in |
comment:10
Am I missing something, or would this only make sense if nose would actually be a (at least optional) spkg. Sure, you could install nose into sage by hand. But that sounds a little hacky to me. I would much rather prefer to wait for the spkg. (Please correct me, if I'm missing something. Otherwise I feel like making (risking) more problems than solving.) |
comment:11
I still think that Python should be listed as a dependency. Otherwise, this looks okay. |
comment:12
Sure. Is that alright? |
comment:13
I'm happy with your changes, but, sorry, I keep finding more small problems. I think the last one is this: in the |
comment:14
Oh, that's right, the order needs to be reversed: https://bitbucket.org/niels_mfo/pybtex/src/20120618/SPKG.txt I'm really happy for any communication whatsoever, as long as we all work on improving stuff. So if there any more problems (big or small), please don't hesitate to write about them :-) |
comment:15
Yes, that looks good now. Regarding spkg-install, you don't really need to create and delete the directory diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -6,19 +6,19 @@ if [ "x$SAGE_LOCAL" = x ]; then
exit 1
fi
+CUR=`pwd`
+
# need to suppress confusing error messages and don't depend on system
# libraries, so easy_install is not available
-mkdir tmp &&
- unzip -o PyYAML-3.10.zip -d tmp &&
- cd tmp/PyYAML-3.10 &&
+unzip -o PyYAML-3.10.zip &&
+ cd PyYAML-3.10 &&
python setup.py --without-libyaml install --prefix="$SAGE_LOCAL"
if [ $? -ne 0 ]; then
echo "Error installing PyYAML."
exit 1
fi
-cd ../..
-rm -rf tmp
+cd "$CUR"
easy_install pyparsing-1.5.6.zip
if [ $? -ne 0 ]; then But this is not very important; it works either way. So if you upgrade the spkg to use your new version of SPKG.txt, you can switch this to "positive review". |
Reviewer: John Palmieri |
This comment has been minimized.
This comment has been minimized.
comment:18
moved spkg to the servers |
Merged: sage-5.2.beta0 |
See http://pybtex.sourceforge.net/ for a description.
Should be a standard spkg later, so that the citation system can use it.
Apply attachment: trac_11851-hgignore.patch to the scripts repo.
New optional spkg: http://ubuntuone.com/6iNB5C4qYc6UZWEwaAcOx1
CC: @sagetrac-PolyBoRi @burcin
Component: packages: optional
Keywords: BibTeX citations
Author: Niels Ranosch, Burcin Erocal
Reviewer: John Palmieri
Merged: sage-5.2.beta0
Issue created by migration from https://trac.sagemath.org/ticket/11851
The text was updated successfully, but these errors were encountered: