summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-22 09:19:57 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-22 09:19:57 -0800
commit100ada0ed656eba970864c8829edd53b07b9bf4a (patch)
treefa618a6f7f9bd18d4cc11095ab5c406627b151b6 /var
parentb1d40efd99a08b9a3fc117a375f6c0d1ef3b32a8 (diff)
parent41fd380d1b85f07b6ab05b2fecd729e125c0c023 (diff)
downloadspack-100ada0ed656eba970864c8829edd53b07b9bf4a.tar.gz
spack-100ada0ed656eba970864c8829edd53b07b9bf4a.tar.bz2
spack-100ada0ed656eba970864c8829edd53b07b9bf4a.tar.xz
spack-100ada0ed656eba970864c8829edd53b07b9bf4a.zip
Merge pull request #266 from LLNL/bugfix/python3-setuptools-conflict
fix conflict with setuptools and cached pyc files
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/python/package.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/var/spack/packages/python/package.py b/var/spack/packages/python/package.py
index 0da7f4ce89..eae2566b57 100644
--- a/var/spack/packages/python/package.py
+++ b/var/spack/packages/python/package.py
@@ -35,7 +35,8 @@ class Python(Package):
# Rest of install is pretty standard except setup.py needs to be able to read the CPPFLAGS
# and LDFLAGS as it scans for the library and headers to build
- configure("--prefix=%s" % prefix,
+ configure_args= [
+ "--prefix=%s" % prefix,
"--with-threads",
"--enable-shared",
"CPPFLAGS=-I%s/include -I%s/include -I%s/include -I%s/include -I%s/include -I%s/include" % (
@@ -45,7 +46,11 @@ class Python(Package):
"LDFLAGS=-L%s/lib -L%s/lib -L%s/lib -L%s/lib -L%s/lib -L%s/lib" % (
spec['openssl'].prefix, spec['bzip2'].prefix,
spec['readline'].prefix, spec['ncurses'].prefix,
- spec['sqlite'].prefix, spec['zlib'].prefix))
+ spec['sqlite'].prefix, spec['zlib'].prefix)
+ ]
+ if spec.satisfies('@3:'):
+ configure_args.append('--without-ensurepip')
+ configure(*configure_args)
make()
make("install")
@@ -112,7 +117,7 @@ class Python(Package):
# Ignore pieces of setuptools installed by other packages.
if ext_pkg.name != 'py-setuptools':
- patterns.append(r'/site\.pyc?$')
+ patterns.append(r'/site[^/]*\.pyc?$')
patterns.append(r'setuptools\.pth')
patterns.append(r'bin/easy_install[^/]*$')
patterns.append(r'setuptools.*egg$')