mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00

Revert also previous changes that pinned numpy to 1.19. One of the changes in numpy 1.20 is to add more type annotations. However, this sometimes make mypy give errors. A common example is numpy.take, which with the new type annotation does not appear to mypy as indexable. Another change is that np.int and np.bool are deprecated. One should use np.bool_ or np.int_, or the built-ins bool and int.
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
# 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
|
|
|
|
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',
|
|
],
|
|
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",
|
|
]
|
|
)
|