https://github.com/google/jax
Raw File
Tip revision: 7ad51264fd3070b2e7190c8c29ff619bfff1d54a authored by Skye Wanderman-Milne on 17 March 2021, 01:26:27 UTC
Update WORKSPACE for jaxlib 0.1.63 release, take 2
Tip revision: 7ad5126
setup.py
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from setuptools import setup, find_packages

__version__ = None
_minimum_jaxlib_version = '0.1.62'
_current_jaxlib_version = '0.1.62'
_available_cuda_versions = ['101', '102', '110', '111', '112']

with open('jax/version.py') as f:
  exec(f.read(), globals())

setup(
    name='jax',
    version=__version__,
    description='Differentiate, compile, and transform Numpy code.',
    author='JAX team',
    author_email='jax-dev@google.com',
    packages=find_packages(exclude=["examples"]),
    package_data={'jax': ['py.typed']},
    python_requires='>=3.6',
    install_requires=[
        'numpy >=1.12',
        'absl-py',
        'opt_einsum',
    ],
    extras_require={
        # CPU-only jaxlib can be installed via:
        # $ pip install jax[cpu]
        'cpu': [f'jaxlib>={_minimum_jaxlib_version}'],

        # CUDA installations require adding jax releases URL; e.g.
        # $ pip install jax[cuda-110] -f https://storage.googleapis.com/jax-releases/jax_releases.html
        **{f'cuda-{version}': f"jaxlib=={_current_jaxlib_version}+cuda{version}"
           for version in _available_cuda_versions}
    },
    url='https://github.com/google/jax',
    license='Apache-2.0',
    classifiers=[
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ]
)
back to top