Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Can I use to ship and install only .pyc files?

Thread Tools

Can I use to ship and install only .pyc files?

Mike Kent
Posts: n/a
I'd like to ship only the .pyc files for a module. I was hoping the
standard distutils could handle this, but so far, I've not
figured out how.

After a bit of work, I discovered that if I create a file,
and put 'include mymodule/*.pyc' and 'exclude mymodule/*.py' in it,
then running 'python sdist' would generate a tar.gz file for
me that contained the file and all my .pyc files, just like I
wanted. However, when I then extract that tar.gz file, and try to run
'python install', it complains about the missing .py files,
and creates the 'mymodule' directory in the site-packages directory
but without putting any of the .pyc files in it.

At this point, I'm stumped. I was hoping someone out there had gone
down this same route and could tell what I'm doing wrong. Can even handle this?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I ship large numbers of photographs? Digital Photography 4 11-16-2005 04:10 AM
Did Microsoft use USPS (Snail Mail) to ship TAP? Kevin Panzke Windows 64bit 13 07-17-2005 03:43 PM
SWIG/IDLE/Python: F5 works but "import SHIP" gives "ImportError: dynamic module does not define init function (initSHIP)" Bill Davy Python 0 05-12-2005 08:48 AM
Can ship Now Bill Warren DVD Video 0 09-19-2004 07:12 PM