Don't touch my shebang

后端 未结 5 1692
轻奢々
轻奢々 2020-11-30 04:15

One thing I hate about distutils (I guess he is the evil who does this) is that it changes the shebang line. In other words, the more rational and environment-vars decided s

5条回答
  •  不知归路
    2020-11-30 04:26

    Of course you can move the development directory around. Distutils changes the paths to the python that you should run with when you run it. It's in Grok run when you run the buildout. Move and re-run the bootstrap and the buildout. Done!

    Distutils changes the path to the Python you use to run distutils with. If it didn't, then you might end up installing a library in one python version, but when you try to run the script it would fail, because it would run with another python version that didn't have the library.

    That's not insanity, it's in fact the only sane way to do it.

    Update: If you know what you are doing, you can do this:

    /path/to/install/python setup.py build -e "/the/path/you/want/python" install
    

    Make sure you clean the build directory first though. :)

提交回复
热议问题