Skip to content
Snippets Groups Projects
Commit 2c1eda66 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

First python extension package: setuptools

parent adb7d614
No related branches found
No related tags found
No related merge requests found
from spack import *
class PySetuptools(Package):
"""Easily download, build, install, upgrade, and uninstall Python packages."""
homepage = "https://pypi.python.org/pypi/setuptools"
url = "https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz"
version('11.3.1', '01f69212e019a2420c1693fb43593930')
extends('python')
def install(self, spec, prefix):
site_packages_dir = "%s/lib/python2.7/site-packages" % prefix
mkdirp(site_packages_dir)
env['PYTHONPATH'] = site_packages_dir
python = which('python')
python('setup.py', 'install', '--prefix=%s' % prefix)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment