Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (56 sloc) 2.214 kB
##########################################################
# 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.1', # 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/')
},
)
Jump to Line
Something went wrong with that request. Please try again.