Questions about install-prefix in distutils.
Hello, I found this email from some years ago: http://mail.python.org/pipermail/distutils-sig/2009-September/013284.html I find myself now having the same problems. My lazy solution so far has been to simply install the data files into the same module directory, and then I just do os.path.join(os.path.dirname(__file__), 'datafile.txt') when I want to access a data file. This was ok when I only had one data file, but my project is expanding and I need something more robust and organized. I tried to look at other projects similar to mine to see how they handled this situation, and it turns out that none of them use distutils! They are all using autotools, and while that's a very cumbersome set of tools, it allows them to pre-process the source files so that the source files know where they've been installed to in a very straightforward way. So I'm just wondering, is this build_py override still the best way to accomplish this? Has this functionality been rolled into distutils in the last 3 years? How are folks handling this situation now-a-days? Note that I don't use setuptools so I'm looking for a pure-distutils solution. Thanks! -- http://exolucere.ca
participants (1)
-
Robert Park