Contact Us

If you are interested in our services leave your contact details below and our sales representatives will contact you.

The organization which you represent
Email address we will use to contact you
Longer contact form…
 
  • About

    mFabrik Blog is about mobile and web software development, open source and Linux. We tell exciting tales where business, technology, web and mobile convergence.

    Creative Commons License
    This work is licensed under a Creative Commons Attribution 3.0 Unported License.

Subversion global-ignores and .egg-info in Python/Plone development

Posted on October 3, 2009  by Mikko Ohtamaa
Filed Under plone, python, technology

Subversion does a good job by ignoring most of build/temporary/unwanted files by default.

However, there is one exception still existing at least in Subversion 1.6: Python egg folders. All folders whose name ends up with .egg-info should not committed or considered in version controlling actions. your.package.name.egg-info folder is generated inside your Python egg source folder when you run setup.py / setuptools.

If you are working with Python source code eggs, add the following line to your ~/.subversion/config

global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.egg-info *.pyc *.pyo .project .pydevproject

Otherwise development tools like Mr. Developer might get confused.

 

Other posts by Mikko Ohtamaa

 

Comments

3 Responses to “Subversion global-ignores and .egg-info in Python/Plone development”

  1. Steffen Lindner on October 12th, 2009 4:09 pm
    Gravatar

    Just a note:

    none of the files to ignore, should be already checked into svn. Otherwise it wont work!

     
  2. Mikko ohtamaa on January 4th, 2010 12:33 pm
    Gravatar

    Updated line:

    global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.egg-info *.pyc *.pyo .project .pydevproject build *.so

     
  3. Sean Kelly on March 29th, 2010 3:54 pm
    Gravatar

    Also add: ._* (Mac metadata on foreign filesystems) and *.tmproj (TextMate project files).

     

Leave a Reply