-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
executable file
·66 lines (62 loc) · 2.22 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
#!/usr/bin/env python
"""Installs RunSnakeRun using distutils
Run:
python setup.py install
to install the package from the source archive.
"""
import os, sys
from setuptools import setup
version = [
(line.split('=')[1]).strip().strip('"').strip("'")
for line in open(
os.path.join(os.path.dirname(__file__), 'runsnakerun', '__init__.py')
)
if line.startswith('__version__')
][0]
if __name__ == "__main__":
### Now the actual set up call
if sys.platform == 'darwin':
gui_commands = [
'runsnake=runsnakerun.macshim:macshim',
'runsnake32=runsnakerun.runsnake:main',
'runsnakemem=runsnakerun.runsnake:meliaemain',
]
else:
gui_commands = [
'runsnake=runsnakerun.runsnake:main',
'runsnakemem=runsnakerun.runsnake:meliaemain',
]
setup(
name="RunSnakeRun",
version=version,
url="https://github.com/mcfletch/runsnakerun",
download_url="https://pypi.org/project/RunSnakeRun/",
description="GUI Viewer for Python profiling runs",
author="Mike C. Fletcher",
author_email="[email protected]",
install_requires=[
'pathlib2', # dependency for wxPython
'six',
'SquareMap >= 1.0.5', # to work with python 3.x and Pheonix
'wxPython',
],
license="BSD",
package_dir={'runsnakerun': 'runsnakerun',},
packages=['runsnakerun',],
options={'sdist': {'force_manifest': 1, 'formats': ['gztar', 'zip'],},},
zip_safe=False,
entry_points={'gui_scripts': gui_commands,},
install_package_data=True,
classifiers=[
"""License :: OSI Approved :: BSD License""",
"""Programming Language :: Python :: 2""",
"""Programming Language :: Python :: 3""",
"""Topic :: Software Development :: Libraries :: Python Modules""",
"""Intended Audience :: Developers""",
],
keywords='profile,gui,wxPython,squaremap',
long_description="""GUI Viewer for Python profiling runs
Provides explorability and overall visualization of the call tree
and package/module structures.""",
platforms=['Any'],
)