summaryrefslogtreecommitdiff
path: root/setup3lib.py
diff options
context:
space:
mode:
authorAlex Stewart <alex@foogod.com>2010-09-01 14:24:47 -0700
committerAlex Stewart <alex@foogod.com>2010-09-01 14:24:47 -0700
commitc58f8d55e1aac4b1eec792e85cdd3b376ec4c4e2 (patch)
treec8225ab52b5d038edf359547868521733735ecb2 /setup3lib.py
parentb98f0b1e46bfa4a2f11012d1c2d28caf59163864 (diff)
downloadnose-c58f8d55e1aac4b1eec792e85cdd3b376ec4c4e2.tar.gz
Added a 'py3where' option to nosetests
Diffstat (limited to 'setup3lib.py')
-rw-r--r--setup3lib.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setup3lib.py b/setup3lib.py
index 8c024bf..27bdb93 100644
--- a/setup3lib.py
+++ b/setup3lib.py
@@ -79,7 +79,7 @@ else:
test_base = self.distribution.test_build_dir
if not test_base:
bcmd = self.get_finalized_command('build')
- test_base = os.path.join(bcmd.build_base, 'tests')
+ test_base = bcmd.build_base
self.test_base = test_base
def run(self):
@@ -91,6 +91,7 @@ else:
modified = []
py_modified = []
doc_modified = []
+ dir_util.mkpath(test_base)
for testdir in test_dirs:
for srcdir, dirnames, filenames in os.walk(testdir):
destdir = os.path.join(test_base, srcdir)
@@ -121,9 +122,6 @@ else:
else:
log.warn("Warning: pyversion_patching specified in setup config but patch module not found. Patching will not be performed.")
- # Some test frameworks read things from setup.cfg and expect it to
- # be present in the current directory. In any case, doesn't hurt..
- file_util.copy_file('setup.cfg', test_base, update=True)
dir_util.mkpath(lib_base)
self.reinitialize_command('egg_info', egg_base=lib_base)
self.run_command('egg_info')