Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PythonTEX ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Chymera
Apprentice
Apprentice


Joined: 13 Sep 2007
Posts: 245
Location: Zürich

PostPosted: Sat Oct 05, 2013 7:40 pm    Post subject: PythonTEX ebuild Reply with quote

Hi guys, I am trying to write an ebuild for an awesome software package called PythonTeX. This package allows you to run python code from within LaTeX - giving you the possibility of making live graphics part of your documents. Data Changed? BÄM! automatically get new graphic on the next compile! This is awesome for many things, especially for science - and I plan to submit this to the gentoo-science overlay.

In the mean time:

My ebuild is here https://github.com/TheChymera/sci/tree/33398fa1b68185f52b249407f4f499db72749ea4/dev-tex/pythontex/pythontex-0.12.ebuild
But it fails to compile because http://bpaste.net/show/136819/

Apparently either the install script has some interactivity - or pythontex is already included (in texlive maybe) - equery didn't find anything, so I'm at a loss.

Any ideas what'S going on and what I can do about it?
_________________
Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo!
Back to top
View user's profile Send private message
Chymera
Apprentice
Apprentice


Joined: 13 Sep 2007
Posts: 245
Location: Zürich

PostPosted: Sun Oct 06, 2013 1:56 am    Post subject: Reply with quote

I've done some more work on this, and with the help of some nice people from #gentoo-dev-help I got this far:

1) https://github.com/TheChymera/sci/tree/ffdd5f84c54cb2546cd6d557b8681c200144e289/dev-tex/pythontex/pythontex-0.12.ebuild fails with http://bpaste.net/show/138106/
2) https://github.com/TheChymera/sci/tree/bb9a4413986e2fb3d578cf09647c9bf795281427/dev-tex/pythontex/pythontex-0.12.ebuild fails with http://bpaste.net/show/138107/

Why won't the shebang fixes work? what can I do about them?
_________________
Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo!
Back to top
View user's profile Send private message
anyc
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 119

PostPosted: Sun Oct 06, 2013 10:07 am    Post subject: Reply with quote

I'm not really familiar with this topic, but after reading http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/python-utils-r1.eclass?r1=1.12&r2=1.13&sortby=file&diff_format=c I guess the "2.7" is the issue. You could try if it works if you replace it with "python" or "python2".
Back to top
View user's profile Send private message
Chymera
Apprentice
Apprentice


Joined: 13 Sep 2007
Posts: 245
Location: Zürich

PostPosted: Sun Oct 06, 2013 7:02 pm    Post subject: Reply with quote

What 2.7? I can't find any “2.7” in my build :-/
_________________
Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo!
Back to top
View user's profile Send private message
Chymera
Apprentice
Apprentice


Joined: 13 Sep 2007
Posts: 245
Location: Zürich

PostPosted: Tue Oct 08, 2013 1:04 am    Post subject: Reply with quote

My ebuild currently looks like this - and it seems to work, but:

- I can't run pythontex.py from terminal (even though the path is in that environment file)
- If I run it with the whole path it can't find pythontex_engines which gets opied to the same path actually :-/ ImportError: No module named pythontex_engines

any Ideas what I should do?

These are the instructions I got from upstream
Quote:

In addition to installing the files according to those specifications, you need a symlink to pythontex.py in the bin/<platform> directory. The bin directory will be at the same level as texmf-dist. <platform> is system-dependent; a complete list is at http://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-250003.2.1.

After all the files are installed, mktexlsr must be run so that the new files are detected.


I tried using mktexlsr - but as you can see it won't work - http://bpaste.net/show/138610/ .
_________________
Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum