public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re: ebuild for pychecker
@ 2001-07-11 21:09 Tod M. Neidt
  0 siblings, 0 replies; only message in thread
From: Tod M. Neidt @ 2001-07-11 21:09 UTC (permalink / raw
  To: gentoo-dev@cvs.gentoo.org

Hi!

>I had one question though.  In the 'Numeric' ebuild there's a line
>'PYTHON_VERSION=', what is that for?

Sorry. This is my bad. :( It does nothing.  I forgot to comment it out.

The idea was to grab the current python version, so the ebuild would
know where to put any "extras" I wanted it to install that were not
automatically installed by setup.py. (this was in anticipation of a
working python2.1 so the module ebuild would not have to be updated if
the core python version was updated)  

Now that I think about it more.

PYTHON_VERSION='python -c "import sys; print sys.version[:3]"'

will give the version of the current running python.

Then for example, the last line of the Numeric ebuild could have been

mv Demo/NumTut ${D}/usr/lib/python${PYTHON_VERSION}/site-packages/

However, the "best" solution would probably be to sed setup.py and/or
setup.cfg (although numeric-19.0 doesn't have this) to include any
additional files you would like to install.

tod

I'm a good kid, just a little slow.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-12  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-11 21:09 [gentoo-dev] Re: ebuild for pychecker Tod M. Neidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox