Bug 758823 - Don't create egg-info directories when populating virtualenv; r=ted
authorGregory Szorc <gps@mozilla.com>
Tue, 04 Sep 2012 10:45:45 -0700
changeset 104208 d034d1924fc7afb327eb2eaf83103b88e25afb4d
parent 104207 8d9c80e2f95b529aabf480831429471e7784fd15
child 104209 abba691cf4041873954272aebc758099a1dc7152
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-esr52@2704e441363f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs758823
milestone18.0a1
Bug 758823 - Don't create egg-info directories when populating virtualenv; r=ted This patch basically bypasses setup.py for pure Python packages. Instead of producing .egg-info directories in the source tree, it merely installs .pth files pointing back to the source directory. As a result, this is less junk in the source tree. The .hgignore and .gitignore entries for egg-info directories have been removed because there should no longer be egg-info directories any more. People should clean up these orphaned directories manually. This can be accomplished by running: $ hg status -u | grep .egg-info | xargs rm -rf $ git ls-files -o '*.egg-info*' | xargs rm -rf
.gitignore
.hgignore
build/virtualenv/packages.txt
--- a/.gitignore
+++ b/.gitignore
@@ -40,11 +40,8 @@ js/src/tests/results-*.txt
 # Java HTML5 parser classes
 parser/html/java/htmlparser/
 parser/html/java/javaparser/
 
 # Ignore the files and directory that Eclipse IDE creates
 .project
 .cproject
 .settings/
-
-# Python stuff installed at build-time
-*.egg-info/
--- a/.hgignore
+++ b/.hgignore
@@ -40,11 +40,8 @@
 
 # SVN directories
 \.svn/
 
 # Ignore the files and directory that Eclipse IDE creates
 \.project$
 \.cproject$
 \.settings/
-
-# Python stuff installed at build-time
-\.egg-info/
--- a/build/virtualenv/packages.txt
+++ b/build/virtualenv/packages.txt
@@ -1,12 +1,12 @@
-setup.py:python/simplejson-2.1.1:develop
-setup.py:testing/mozbase/manifestdestiny:develop
-setup.py:testing/mozbase/mozinfo:develop
-setup.py:testing/mozbase/mozinstall:develop
-setup.py:testing/mozbase/mozlog:develop
-setup.py:testing/mozbase/mozprocess:develop
-setup.py:testing/mozbase/mozprofile:develop
-setup.py:testing/mozbase/mozrunner:develop
-setup.py:python/blessings:develop
-setup.py:python/mozbuild:develop
+simplejson.pth:python/simplejson-2.1.1
+manifestdestiny.pth:testing/mozbase/manifestdestiny
+mozinfo.pth:testing/mozbase/mozinfo
+mozinstall.pth:testing/mozbase/mozinstall
+mozlog.pth:testing/mozbase/mozlog
+mozprocess.pth:testing/mozbase/mozprocess
+mozprofile.pth:testing/mozbase/mozprofile
+mozrunner.pth:testing/mozbase/mozrunner
+blessings.pth:python/blessings
+mozbuild.pth:python/mozbuild
 mozilla.pth:build
 mozilla.pth:config