installing only .pyc (python compiled) with setuptools

后端 未结 1 797
名媛妹妹
名媛妹妹 2020-12-31 01:07

I want to run python setup.py install (the setup script uses setuptools), and I want only the .pyc files to be included in the resulting egg or directory. all .

相关标签:
1条回答
  • 2020-12-31 01:30

    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 讨论(0)
提交回复
热议问题