
Fixes #8343 #4154 #7370 Closes #4155 All but one of the backports packages were using "pkgutil-style" namespacing, but configparser was using "pkg_resource-style". A namespace needs to be one style or another. This adds a new configparser version which switches to using the pkgutil-style namespace approach. With this update, one can now install flake8 with Spack and use it by loading modules.
21 lines
789 B
Python
21 lines
789 B
Python
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack import *
|
|
|
|
|
|
class PyConfigparser(PythonPackage):
|
|
"""This library brings the updated configparser from Python 3.5 to
|
|
Python 2.6-3.5."""
|
|
|
|
homepage = "https://docs.python.org/3/library/configparser.html"
|
|
url = "https://pypi.io/packages/source/c/configparser/configparser-3.5.0.tar.gz"
|
|
|
|
version('3.5.1', sha256='f41e19cb29bebfccb1a78627b3f328ec198cc8f39510c7c55e7dfc0ab58c8c62')
|
|
version('3.5.0', 'cfdd915a5b7a6c09917a64a573140538')
|
|
|
|
depends_on('py-setuptools', type='build')
|
|
depends_on('py-ordereddict', when='^python@:2.6', type=('build', 'run'))
|