I've been messing around with an ebuild of Pithos using distutils-r1, and I noticed that there's a hard-coded installation directory being written on install that is no longer being set correctly. (The hard-coding is kind of a hack; basically "/usr/share/pithos" is being put into one of the site-packages files.) I find that surrounding the section that adds these flags with "if [[ ! "${1}" == install ]]" fixes the problem.
It's necessary for 'install' or otherwise distutils won't be able to find the built files and will build again. Please paste the ebuild you're having problem with.
Created attachment 344134 [details] pithos-0.3.17.ebuild The ebuild in question. Adapted from pithos-9999.ebuild in sunrise.
(In reply to comment #2) > Created attachment 344134 [details] > pithos-0.3.17.ebuild > > The ebuild in question. Adapted from pithos-9999.ebuild in sunrise. 1) please use python_configure_all() for the export, 2) please use [${PYTHON_USEDEP}] on Python dependencies. Other than that, I don't see anything problematic in the ebuild itself. Build log?
Created attachment 344248 [details] build.log The build log in question. I don't see anything too surprising, though it does show the setup.py command. The problem is not apparent until you actually try to run Pithos afterward. If it helps, here is the setup.py for Pithos (at this tag); it's short. https://github.com/kevinmehall/pithos/blob/07dcbd86a1db202122795dd55a91d230bd63f5bb/setup.py You can see that it's a DistUtilsExtra build and the "InstallAndUpdateDataDirectory" class is supposed to call the function that updates the path in pithosconfig.py.
Created attachment 344250 [details] new pithos-0.3.17.ebuild Not directly relevant, but here's a new ebuild with the aforementioned changes. Some of the dependencies don't have the flags in the stable versions, so it needs some versions from testing now.
That's not really problem with 'build' command but with setup.py failing to properly use build_dir. The substitution should be performed on the copy of sources copied to 'build' (--build-lib, to be more exact) which will be installed in the system, and not to the local one.
Created attachment 344262 [details, diff] Patch fixing the upstream issue Could you test this patch, please? If it's fine, I'll send a pull request to upstream right away. Alternative, you can use my github fork to test it: https://github.com/mgorny/pithos
This works fine for me. Thanks for your assistance and for clearing this up!
We no longer pass 'build' arguments, so we can close this is really FIXED.