forked from sagemath/sagenb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
64 lines (56 loc) · 2.16 KB
/
setup.py
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
##########################################################
# The setup.py for the Sage Notebook
##########################################################
import os, sys, time
from setuptools import setup
import distutils.log
if os.environ.get("SAGE_SETUPTOOLS_DEBUG","no")=="yes":
distutils.log.set_threshold(distutils.log.DEBUG)
def all_files(dir, lstrip):
"""
Return list of all filenames in the given directory, with lstrip
stripped from the left of the filenames.
"""
X = []
for F in os.listdir(dir):
ab = dir+'/'+F
if os.path.isfile(ab):
X.append((ab).lstrip(lstrip))
elif os.path.isdir(ab):
X.extend(all_files(ab, lstrip))
return X
code = setup(name = 'sagenb',
version = '0.9.0', # the spkg-dist script assumes single quotes here
description = 'The Sage Notebook',
license = 'GNU Public License (GPL) v2+',
author = 'William Stein et al.',
author_email= 'http://groups.google.com/group/sage-notebook',
url = 'http://code.google.com/p/sagenb',
install_requires = [ 'twisted>=11.0.0'
, 'flask'
, 'flask-openid'
, 'flask-autoindex'
, 'babel'
, 'flask-babel'
, 'hg-git'
, 'pyOpenSSL<=0.12'
],
test_suite = 'sagenb.testing.run_tests.all_tests',
packages = [ 'sagenb'
, 'sagenb.interfaces'
, 'sagenb.misc'
, 'sagenb.notebook'
, 'sagenb.notebook.compress'
, 'sagenb.simple'
, 'sagenb.storage'
, 'sagenb.testing'
, 'sagenb.testing.tests'
, 'sagenb.testing.selenium'
],
scripts = [ 'sagenb/data/sage3d/sage3d',
],
package_data = {'sagenb':
all_files('sagenb/data', 'sagenb/') +
all_files('sagenb/translations', 'sagenb/')
},
)