[Python-checkins] distutils2: Various fixes.

tarek.ziade python-checkins at python.org
Sun Aug 8 11:50:45 CEST 2010


tarek.ziade pushed 6309c707cbb3 to distutils2:

http://hg.python.org/distutils2/rev/6309c707cbb3
changeset:   408:6309c707cbb3
user:        ?ric Araujo <merwok at netwok.org>
date:        Sat Jul 31 14:13:31 2010 +0200
summary:     Various fixes.
files:       .hgignore, src/setup.cfg, src/tests.sh

diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -1,9 +1,10 @@
 syntax: glob
 *.py[co]
 __pycache__/
+*.so
 configure.cache
 build/
 MANIFEST
 dist/
 *.swp
-.coverage
\ No newline at end of file
+.coverage
diff --git a/src/setup.cfg b/src/setup.cfg
new file mode 100644
--- /dev/null
+++ b/src/setup.cfg
@@ -0,0 +1,3 @@
+[build_ext]
+# needed so that tests work without mucking with sys.path
+inplace = 1
diff --git a/src/tests.sh b/src/tests.sh
--- a/src/tests.sh
+++ b/src/tests.sh
@@ -1,20 +1,18 @@
 #!/bin/sh
 echo -n "Running tests for Python 2.4... "
-rm -rf *.so
-python2.4 setup.py build_ext -i -q 2> /dev/null > /dev/null
+rm -f _hashlib.so
+python2.4 setup.py build_ext -q 2> /dev/null > /dev/null
 python2.4 -Wd runtests.py -q 2> /dev/null
-rm -rf *.so
 if [ $? -ne 0 ];then
     echo "Failed"
+    rm -f _hashlib.so
     exit 1
 else
     echo "Success"
 fi
 
 echo -n "Running tests for Python 2.5... "
-python2.5 setup.py build_ext -i -q 2> /dev/null > /dev/null
 python2.5 -Wd runtests.py -q 2> /dev/null
-rm -rf *.so
 if [ $? -ne 0 ];then
     echo "Failed"
     exit 1

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list