开发者

installing only .pyc (python compiled) with setuptools

开发者 https://www.devze.com 2023-02-27 02:22 出处:网络
I want to run python setup.py install (the setup script uses setuptools), and I want only the 开发者_Go百科.pyc files to be included in the resulting egg or directory. all .py files must not be presen

I want to run python setup.py install (the setup script uses setuptools), and I want only the 开发者_Go百科.pyc files to be included in the resulting egg or directory. all .py files must not be present. How can I do this ?


not with install, but a possibility is to run the following command

python setup.py bdist_egg --exclude-source-files

and install the resulting egg in dist with easy_install

easy_install dist/eggname.egg

Note that according to the manual install is nothing but a shortcut to easy_install use.

0

精彩评论

暂无评论...
验证码 换一张
取 消