from pkg_resources import DistributionNotFound, get_distribution
from distutils.core import setup
def get_dist(pkgname):
try:
return get_distribution(pkgname)
except DistributionNotFound:
return None
install_deps = [
'comet_ml',
'numpy',
'regex',
'tqdm',
'gym',
'opik',
'openai',
'transformers',
'datasets',
'peft',
'lion-pytorch',
]
tf_ver = '2.0.0a'
if get_dist('tensorflow>='+tf_ver) is None and get_dist('tensorflow_gpu>='+tf_ver) is None:
install_deps.append('tensorflow>='+tf_ver)
setup(
name = 'mitdeeplearning',
packages = ['mitdeeplearning'],
version = '0.7.5',
license='MIT',
description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)',
author = 'Alexander Amini',
author_email = '[email protected]',
url = 'http://introtodeeplearning.com',
download_url = 'https://github.com/MITDeepLearning/introtodeeplearning/archive/v0.7.5.tar.gz',
keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'],
install_requires=install_deps,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
package_data={
'mitdeeplearning': ['bin/*', 'data/*', 'data/text_styles/*', 'data/faces/DF/*', 'data/faces/DM/*', 'data/faces/LF/*', 'data/faces/LM/*'],
},
)