summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-installer/package.py
blob: 8713734453c423f28dd1fe93961fec091bfbf9ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2013-2022 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 PyInstaller(PythonPackage):
    """A library for installing Python wheels."""

    homepage = "https://github.com/pradyunsg/installer"
    pypi     = "installer/installer-0.4.0.tar.gz"

    version('0.4.0', sha256='17d7ca174039fbd85f268e16042e3132ebb03d91e1bbe0f63b9ec6b40619414a')

    depends_on('python@2.7,3.5:', type=('build', 'run'))
    depends_on('py-flit-core@2', type='build')
    depends_on('py-configparser@3.5:', when='^python@:2', type=('build', 'run'))
    depends_on('py-importlib-resources', when='^python@:3.6', type=('build', 'run'))