forked from vitay/rst2reveal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (65 loc) · 2.14 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
65
66
67
68
69
70
#!/usr/bin/env python
################################################
# Check if the required packages are installed
################################################
# check python version
# import sys
# if not sys.version_info[:2] >= (2, 6):
# print 'Error : rst2reveal requires at least Python 2.6.'
# exit(0)
# if sys.version_info[:2] >= (3, 0):
# print 'Error : rst2reveal works with Python 2.x, not yet with 3.x.'
# exit(0)
# setuptools
from setuptools import setup
setup()
# docutils
# try:
# import docutils
# print('Checking for docutils... OK')
# except:
# print('Checking for docutils... NO')
# print('Error : Python package "docutils" is required.')
# print('You can install it from: http://pypi.python.org/pypi/docutils')
# exit(0)
#
# # pygments
# try:
# import pygments
# print('Checking for pygments... OK')
# except:
# print('Checking for pygments... NO')
# print('Warning : Python package "pygments" is not required but strongly advised to highlight code.')
# print('You can install it from: http://pypi.python.org/pypi/pygments')
#
# # matplotlib
# try:
# import matplotlib
# print('Checking for matplotlib... OK')
# except:
# print('Checking for matplotlib... NO')
# print('Warning : Python package "matplotlin" is not required but strongly advised to plot figures.')
# print('You can install it from: http://pypi.python.org/pypi/matplotlib')
#
# # Install the package
# from rst2reveal import __version__ as version
# setup(
# name='rst2reveal',
# version=version,
# license='MIT',
# platforms='GNU/Linux',
# description='ReST to Reveal.js translator.',
# long_description='ReST to Reveal.js translator.',
# author='Julien Vitay',
# author_email='julien.vitay@gmail.com',
# url='https://bitbucket.org/vitay/rst2reveal',
# packages=['rst2reveal'],
# package_data={'reveal': ['reveal'], 'static': ['static']},
# include_package_data=True,
# entry_points = {
# 'console_scripts': [
# 'rst2reveal = rst2reveal.cli:main',
# ]
# },
# )
#