pyminuit
pyminuit copied to clipboard
Linux non-standard build doesn't work as described
trafficstars
What steps will reproduce the problem?
1. Install Minuit to a non-standard location
2. Run PyMinuit's "setup.py install"
What is the expected output? What do you see instead?
I get errors about missing headers. To make it work, I need to make the
PyMinuit build pick up the headers and library from the non-standard location:
$ CPPFLAGS="-I$HOME/heplocal/include" LDFLAGS="-I$HOME/heplocal/lib" python
setup.py build
$ python setup.py install --prefix=$HOME/heplocal
What version of the product are you using? On what operating system?
1.0.2 on Ubuntu Linux.
Please provide any additional information below.
It would be nice if there was a way for setup.py to automatically use
$prefix/include and $prefix/lib for headers and libraries when it builds as
part of the "install" target, but my attempts to hack setup.py to do this
failed. Incidentally, is there a need for all those os.path.join(...)s in
the setup file? distutils automatically does path conversion etc. for
Windows builds, so there *shouldn't* be a cross-platform portability issue.
Oh yes, thanks for making the interface: it's nifty ;)
Original issue reported on code.google.com by [email protected] on 12 Jun 2008 at 3:46