By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,921 Members | 1,959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,921 IT Pros & Developers. It's quick & easy.

distutils: binary distribution?

P: n/a
Hello,

I would like the distutils are creating a binary distribution only - means
create the distribution file with *.pyc files WITHOUT the *.py files. Any
ideas? Or are the distutils the wrong tool for that?
"setup.py bdist" creates binary dist, but includes the sourcecode

cheers

Stefan
--
"Was heute Zeit heißt, ist ein technologisches Konzept,
das asynchron zu den Rhythmen des Lebens läuft."
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Stefan Waizmann wrote:
I would like the distutils are creating a binary distribution only - means
create the distribution file with *.pyc files WITHOUT the *.py files. Any
ideas?


You will need to create your own command. You can either specialize the
build command, to not copy the source code (more specifically, the
build_py command), or you modify the relevant bdist_* command to not
include the "built" .py files into the binary distribution.

Once you have implemented the derived commands, you pass them to the
setup function in the cmdclass keyword argument.

Regards,
Martin
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.