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

Using SVN with Python and .pyc files

P: n/a
Hello All,

I have been moving to managing a lot of my code with SVN and I have
found it to work extremely well. However, I'm not exactly sure how to
deal with all of the .pyc files that get created every time I test a
project or package. How do people manage this? Do you run a script to
find files with the .pyc extension and delete those before every commit,
or is there a more elegant way? It seems like a lot of wasted bandwidth
an memory on the server side to constantly be dealing with these files
that contain no real information.

James
Oct 13 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
James Stroud schreef:
I have been moving to managing a lot of my code with SVN and I have
found it to work extremely well. However, I'm not exactly sure how to
deal with all of the .pyc files that get created every time I test a
project or package. How do people manage this? Do you run a script to
find files with the .pyc extension and delete those before every commit,
or is there a more elegant way? It seems like a lot of wasted bandwidth
an memory on the server side to constantly be dealing with these files
that contain no real information.
You can instruct SVN to ignore the *.pyc files. What you need to do that
is the svn:ignore property on the directory containing the files, IIRC.
Check the docs for details. The online book at
http://svnbook.red-bean.com/ should tell you all you need. Look
especially at
http://svnbook.red-bean.com/nightly/...special.ignore
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton

Roel Schroeven
Oct 13 '06 #2

P: n/a
James Stroud <js*****@mbi.ucla.eduwrote:
I have been moving to managing a lot of my code with SVN and I have
found it to work extremely well. However, I'm not exactly sure how to
deal with all of the .pyc files that get created every time I test a
project or package. How do people manage this? Do you run a script to
find files with the .pyc extension and delete those before every commit,
or is there a more elegant way? It seems like a lot of wasted bandwidth
an memory on the server side to constantly be dealing with these files
that contain no real information.
You use svn:ignore to ignore files you don't want version controlled.

See:
http://svnbook.red-bean.com/nightly/...special.ignore
Oct 13 '06 #3

P: n/a
James Stroud schrieb:
project or package. How do people manage this? Do you run a script to
find files with the .pyc extension and delete those before every commit,
or is there a more elegant way? It seems like a lot of wasted bandwidth
an memory on the server side to constantly be dealing with these files
that contain no real information.
in /etc/subversion/config

global-ignores = *.pyc *~ #*#

--
Servus, Gregor
Oct 13 '06 #4

P: n/a
Everyone wrote:
[something helpful]

Thank you to everyone for your responses.

James
Oct 13 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.