Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aamini
GitHub Repository: aamini/introtodeeplearning
Path: blob/master/setup.py
544 views
1
from pkg_resources import DistributionNotFound, get_distribution
2
from distutils.core import setup
3
4
5
def get_dist(pkgname):
6
try:
7
return get_distribution(pkgname)
8
except DistributionNotFound:
9
return None
10
11
install_deps = [
12
'comet_ml',
13
'numpy',
14
'regex',
15
'tqdm',
16
'gym',
17
'opik',
18
'openai',
19
'transformers',
20
'datasets',
21
'peft',
22
'lion-pytorch',
23
]
24
tf_ver = '2.0.0a'
25
if get_dist('tensorflow>='+tf_ver) is None and get_dist('tensorflow_gpu>='+tf_ver) is None:
26
install_deps.append('tensorflow>='+tf_ver)
27
28
setup(
29
name = 'mitdeeplearning', # How you named your package folder (MyLib)
30
packages = ['mitdeeplearning'], # Chose the same as "name"
31
version = '0.7.5', # Start with a small number and increase it with every change you make
32
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
33
description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)', # Give a short description about your library
34
author = 'Alexander Amini', # Type in your name
35
author_email = '[email protected]', # Type in your E-Mail
36
url = 'http://introtodeeplearning.com', # Provide either the link to your github or to your website
37
download_url = 'https://github.com/MITDeepLearning/introtodeeplearning/archive/v0.7.5.tar.gz', # I explain this later on
38
keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'], # Keywords that define your package best
39
install_requires=install_deps,
40
classifiers=[
41
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
42
'License :: OSI Approved :: MIT License', # Again, pick a license
43
'Programming Language :: Python :: 3', #Specify which pyhton versions that you want to support',
44
'Programming Language :: Python :: 3.6',
45
],
46
package_data={
47
'mitdeeplearning': ['bin/*', 'data/*', 'data/text_styles/*', 'data/faces/DF/*', 'data/faces/DM/*', 'data/faces/LF/*', 'data/faces/LM/*'],
48
},
49
50
)
51
52