How to obtain arguments passed to setup.py from pip with '--install-option'?

前端 未结 5 1121
花落未央
花落未央 2020-12-03 04:57

I am using pip 1.4.1, attempting to install a package from a local path, for example:

pip install /path/to/my/local/package

This does what

5条回答
  •  不知归路
    2020-12-03 05:29

    On top of this great anwser. One more thing to notice is that --install-options doesn't work with wheel

    Since version 7.0 pip supports controlling the command line options given to setup.py via requirements files. This disables the use of wheels (cached or otherwise) for that package, as setup.py does not exist for wheels.

    However, when you build the wheel with setup.py, you can use

    python setup.py bdist_wheel install -your-options
    

    To customize the install phase and this will affect the .dist-info of the wheel package.

提交回复
热议问题