having git ignore .egg-info directory?

3,369 views
Skip to first unread message

Ali Asad Lotia

unread,
Apr 22, 2011, 12:17:20 PM4/22/11
to learnin...@googlegroups.com
Hello All,

Note: all files are specified assuming the git repo is the top level
directory. I have provided relative paths to the file from that
directory.

While attempting to set up an instance of LR, I did a 'pip install -e
.' instead of 'easy install LR' as specified in LR/README.txt . This
resulted in modifications to LR/LR.egg-info/SOURCES.txt and
LR/LR.egg-info/top_level.txt Is there a reason why this directory
isn't being ignored?

http://stackoverflow.com/questions/3719243/recommended-gitignore-file-for-python-projects
and https://github.com/github/gitignore/blob/master/Python.gitignore
recommend ignoring the contents of all the egg-info directories.

I'm not a Python or Pylons expert in any way. Just somewhat curious.
Thanks,
aal

Daniel Rehak

unread,
Apr 22, 2011, 4:10:49 PM4/22/11
to learnin...@googlegroups.com
Hi

I think everyone has pretty much left for Easter weekend, but someone will get back to you.

Thanks for pointing it out.
  - Dan
--
Daniel R. Rehak, Ph.D.

ADL Technical Advisor
Skype: drrehak
Email:  daniel...@gmail.com
            daniel.r...@adlnet.gov
Twitter: @danielrehak
Web:   learningregistry.org
           adlnet.gov
           lsal.org

Google Voice: +1 412 301 3040
Tel:      +1 412 931 7317
Work:   +1 412 931 7319
Mob:    +1 412 805 7683

Jim Klo

unread,
Apr 22, 2011, 5:41:54 PM4/22/11
to learnin...@googlegroups.com
Hi Ali,

To be honest, I don't know that there is any reason for or against ignoring the egg-info files. We're actually in the process of trying to clean up the source tree ( I think before we start coding the next sprint ). 
Most of the dev team is new to git and github, and several are new to Python/Pylons - so we are always open to suggestions and guidance.

I've add a PivotalTracker story to track this request.

Jim Klo
Senior Software Engineer
Center for Software Engineering
SRI International



Ali Asad Lotia

unread,
Apr 24, 2011, 1:54:11 PM4/24/11
to learnin...@googlegroups.com
I can't edit the story yet since I"ve requested project membership on
pivotal tracker, but I've attached a patch to this message that does
the following:
1. Removes the contents of LR/LR.egg-info from the repository.
2. Adds all *.egg-info directories and MANIFEST files to .gitignore.
3. Adds LR/config.ini to .gitignore because locally generated config
files are unlikely to be tracked in a git repository.

If this patch makes sense to you guys, please let me know if you'd
prefer to receive a pull request via Github rather than receiving
patches.

Best,
Ali

0001-Delete-LR.egg-info-files-and-ignore-all-.egg-info.patch

Daniel Rehak

unread,
Apr 24, 2011, 3:01:57 PM4/24/11
to learnin...@googlegroups.com
Hi Ali

You're now able to edit the story.
I'll let Suraiya let you know about the best way to manage this -- she's controlling the code management.

Thanks!
    - Dan

Suliman, Suraiya H

unread,
Apr 25, 2011, 10:20:28 AM4/25/11
to learnin...@googlegroups.com
Ali,

Thanks for your change, please send a pull request and we'll merge your changes in. Apparently .egg-info file is required for an older version of Setuptools but if you're using pip, easy_install or the trunk version of setuptools, .egg-info can be ignored.

-Suraiya


________________________________________
From: learnin...@googlegroups.com [learnin...@googlegroups.com] On Behalf Of Ali Asad Lotia [ali.asa...@gmail.com]
Sent: Sunday, April 24, 2011 1:54 PM
To: learnin...@googlegroups.com
Subject: EXTERNAL: Re: [Learningreg-Dev] having git ignore .egg-info directory?

Reply all
Reply to author
Forward
0 new messages