470,647 Members | 1,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Prevent pyc or pyo compiled output

Hi. I have exactly the problem described in PEP 304: I want to tell
python _not_ to write the .pyc bytecode versions of my modules. (During
development it clutters up my directories and 'svn st' output.)

PEP 304 introduces a method to fix this, but I was wondering if there is
some sort of quick and/or dirty workaround for now.

Thanks for any tips.

--
Jason Smith
Open Enterprise Systems
Bangkok, Thailand
http://oes.co.th

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA2+/Um5qEoSbpT3kRAr/UAKCyZIv1L2n4xHQX9XizxfvjCl/HrQCdFDY2
t9/+bX49oufsY1yu9+oC5dw=
=RUy1
-----END PGP SIGNATURE-----

Jul 18 '05 #1
2 1597
Jason Smith <jh*@oes.co.th> wrote in
news:ma**************************************@pyth on.org:
Hi. I have exactly the problem described in PEP 304: I want to tell
python _not_ to write the .pyc bytecode versions of my modules. (During
development it clutters up my directories and 'svn st' output.)


You can fix it for 'svn st' output easily enough: just tell svn to ignore
the files (something like "svn ps -R svn:ignore '*.pyc' .", but I use
tortoisesvn so I may have got the command wrong, and you also want to set
it as a default in your svn config.)

Jul 18 '05 #2
Jason Smith wrote:
Hi. I have exactly the problem described in PEP 304: I want to tell
python _not_ to write the .pyc bytecode versions of my modules. (During
development it clutters up my directories and 'svn st' output.)

PEP 304 introduces a method to fix this, but I was wondering if there is
some sort of quick and/or dirty workaround for now.


Maybe you can duplicate your package structure with symlinks to the *.py
files. Then you need not care about the *.pyc put there (untested).

Peter

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by byte biscuit | last post: by
5 posts views Thread by LutherRevisited | last post: by
13 posts views Thread by Perecli Manole | last post: by
40 posts views Thread by castironpi | last post: by
3 posts views Thread by Robert Dunlop | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.