Spaces:
Sleeping
Sleeping
File size: 1,089 Bytes
b0e1209 0c0aff7 b0e1209 0c0aff7 8af3119 0c0aff7 b0e1209 bed9614 5908dc9 b0e1209 0c0aff7 e1bfb27 f2e0980 e1bfb27 0c0aff7 b0e1209 0c0aff7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
import importlib.util
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
extra_installs = []
torch_installed = (importlib.util.find_spec('torch') is not None)
install_sympytorch = torch_installed
if install_sympytorch:
extra_installs.append('sympytorch')
print(extra_installs)
setuptools.setup(
name="pysr", # Replace with your own username
version="0.6.0rc1",
author="Miles Cranmer",
author_email="[email protected]",
description="Simple and efficient symbolic regression",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/MilesCranmer/pysr",
install_requires=([
"numpy",
"pandas",
"sympy"
] + extra_installs),
packages=setuptools.find_packages(),
package_data={
'pysr': ['../Project.toml', '../datasets/*']
},
include_package_data=False,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)
|