473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using SVN with Python and .pyc files

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
4 3536
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
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
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
Everyone wrote:
[something helpful]

Thank you to everyone for your responses.

James
Oct 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results....
3
by: Kay Lee | last post by:
Hi, I looked up os module to find out some method to move and copy files in python, but os doesn't support such methods. Is there any way to move & copy files in python? Thanks in adv.
1
by: Chris | last post by:
I need to monitor a bunch of files to see what is being opened, read, and closed, with no modifications being made. This is being done first on Windows machines, and later on Solaris. Looking...
0
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
10
true911m
by: true911m | last post by:
This is a simple walkthrough to get PyInstaller up and running. I decided to give PI a try, because it claims to be more selective about what it bundles into its executable files by default, and...
4
true911m
by: true911m | last post by:
Here's a little walkthrough to get py2exe up and running. I'm not an expert, so I can't help much with any problems you might have. This is what worked for me. The result here will be to convert...
4
by: Chris Nethery | last post by:
Hello everyone, I have a challenging issue I need to overcome and was hoping I might gain some insights from this group. I am trying to speed up the process I am using, which is as follows: ...
0
by: Albert-jan Roskam | last post by:
Hi John, Thanks! Using a higher xlrd version did the trick! Regarding your other remarks: -yep, input files with multiple sheets don't work yet. I kinda repressed that ;-) Spss outputs only...
0
by: rajasankar | last post by:
Hi, I am using Jython based application and trying to use inspect.py in the python files. Here is my code import inspect,os,sys,pprint,imp def handle_stackframe_without_leak(getframe): ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.