[Python-checkins] r73522 - in distutils/trunk: MANIFEST.in distutils.pth setup.py

tarek.ziade python-checkins at python.org
Tue Jun 23 15:14:47 CEST 2009


Author: tarek.ziade
Date: Tue Jun 23 15:14:47 2009
New Revision: 73522
Log:
added distutils.pth to override distutils installation
Added:
 distutils/trunk/distutils.pth (contents, props changed)
Modified:
 distutils/trunk/MANIFEST.in
 distutils/trunk/setup.py
Modified: distutils/trunk/MANIFEST.in
==============================================================================
--- distutils/trunk/MANIFEST.in	(original)
+++ distutils/trunk/MANIFEST.in	Tue Jun 23 15:14:47 2009
@@ -1,3 +1,4 @@
 include README.txt
 include distutils/README
 recursive-include distutils *.py
+include distutils.pth
Added: distutils/trunk/distutils.pth
==============================================================================
--- (empty file)
+++ distutils/trunk/distutils.pth	Tue Jun 23 15:14:47 2009
@@ -0,0 +1,4 @@
+import sys; sys.__plen = len(sys.path)
+./distutils
+import sys, os; new=sys.path[sys.__plen:]; new[0] = os.path.split(new[0])[0];del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
+
Modified: distutils/trunk/setup.py
==============================================================================
--- distutils/trunk/setup.py	(original)
+++ distutils/trunk/setup.py	Tue Jun 23 15:14:47 2009
@@ -11,7 +11,7 @@
 TRUNK_VERSION = True
 
 # the reStructuredText contained in
-# README.txt will be displayed in PyPI
+# README.txt will be displayed at PyPI
 README_FILE = open('README.txt')
 try:
 description = README_FILE.read()
@@ -71,5 +71,7 @@
 url="http://www.python.org/sigs/distutils-sig",
 license="Python",
 long_description=description,
- packages=['distutils'])
+ packages=['distutils', 'distutils.command'],
+ data_files=[('lib/python2.6/site-packages/', ['distutils.pth'])]
+ )
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /