more fixes for use of setuptools in python packages
- py-setuptools is required by py-yt for importing yt in jupyter notebooks. - add two dependencies needed for python 2.7 - add the py-subprocess32 package
This commit is contained in:
parent
8b92908ab4
commit
16a7b27a9e
@ -69,6 +69,8 @@ class PyMatplotlib(PythonPackage):
|
|||||||
depends_on('py-pyparsing', type=('build', 'run'))
|
depends_on('py-pyparsing', type=('build', 'run'))
|
||||||
depends_on('py-pytz', type=('build', 'run'))
|
depends_on('py-pytz', type=('build', 'run'))
|
||||||
depends_on('py-cycler@0.9:', type=('build', 'run'))
|
depends_on('py-cycler@0.9:', type=('build', 'run'))
|
||||||
|
depends_on('py-subprocess32', type=('build', 'run'), when='^python@:2.7')
|
||||||
|
depends_on('py-functools32', type=('build', 'run'), when='^python@2.7')
|
||||||
|
|
||||||
# ------ Optional GUI frameworks
|
# ------ Optional GUI frameworks
|
||||||
depends_on('tk@8.3:', when='+tk') # not 8.6.0 or 8.6.1
|
depends_on('tk@8.3:', when='+tk') # not 8.6.0 or 8.6.1
|
||||||
|
34
var/spack/repos/builtin/packages/py-subprocess32/package.py
Normal file
34
var/spack/repos/builtin/packages/py-subprocess32/package.py
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
##############################################################################
|
||||||
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||||
|
# Produced at the Lawrence Livermore National Laboratory.
|
||||||
|
#
|
||||||
|
# This file is part of Spack.
|
||||||
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||||
|
# LLNL-CODE-647188
|
||||||
|
#
|
||||||
|
# For details, see https://github.com/llnl/spack
|
||||||
|
# Please also see the LICENSE file for our notice and the LGPL.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License (as
|
||||||
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||||
|
# conditions of the GNU Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
##############################################################################
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class PySubprocess32(PythonPackage):
|
||||||
|
"""A backport of the subprocess module from Python 3.2/3.3 for 2.x."""
|
||||||
|
|
||||||
|
homepage = "https://pypi.python.org/pypi/subprocess32"
|
||||||
|
url = "https://pypi.io/packages/source/s/subprocess32/subprocess32-3.2.7.tar.gz"
|
||||||
|
|
||||||
|
version('3.2.7', '824c801e479d3e916879aae3e9c15e16')
|
@ -66,7 +66,7 @@ class PyYt(PythonPackage):
|
|||||||
depends_on("py-matplotlib", type=('build', 'run'))
|
depends_on("py-matplotlib", type=('build', 'run'))
|
||||||
depends_on("py-numpy", type=('build', 'run'))
|
depends_on("py-numpy", type=('build', 'run'))
|
||||||
depends_on("py-scipy", type=('build', 'run'), when="+scipy")
|
depends_on("py-scipy", type=('build', 'run'), when="+scipy")
|
||||||
depends_on("py-setuptools", type="build")
|
depends_on("py-setuptools", type=('build', 'run'))
|
||||||
depends_on("py-sympy", type=('build', 'run'))
|
depends_on("py-sympy", type=('build', 'run'))
|
||||||
depends_on("rockstar@yt", type=('build', 'run'), when="+rockstar")
|
depends_on("rockstar@yt", type=('build', 'run'), when="+rockstar")
|
||||||
depends_on("python @2.7:2.999,3.4:")
|
depends_on("python @2.7:2.999,3.4:")
|
||||||
|
Loading…
Reference in New Issue
Block a user