Adding temporary script that fixes all Python extensions w/ 'setup_py'.

This commit is contained in:
Joseph Ciurej 2016-07-22 11:17:19 -07:00
parent ac2e0962ce
commit fa92f58167
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash --noprofile
PYEXT_REGEX=".*/.*/package.py"
find var/spack/repos/builtin/packages/ -type f -regextype sed -regex ${PYEXT_REGEX} -exec \
sed -i 's/python('\''setup.py'\'', /setup_py(/' {} \;

View File

@ -24,8 +24,11 @@
############################################################################## ##############################################################################
from spack import * from spack import *
class PySetuptools(Package): class PySetuptools(Package):
"""Easily download, build, install, upgrade, and uninstall Python packages.""" """A Python utility that aids in the process of downloading, building,
upgrading, installing, and uninstalling Python packages."""
homepage = "https://pypi.python.org/pypi/setuptools" homepage = "https://pypi.python.org/pypi/setuptools"
url = "https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz" url = "https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz"
@ -40,4 +43,4 @@ class PySetuptools(Package):
extends('python') extends('python')
def install(self, spec, prefix): def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix) setup_py('install', '--prefix=%s' % prefix)