-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup_py2app.py
executable file
·61 lines (53 loc) · 1.73 KB
/
setup_py2app.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
import setuptools
from setuptools.command.develop import develop
from setuptools.command.install import install
import sys
import os
def post_install_script():
import nltk
nltk.download('wordnet')
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
post_install_script()
install.run(self)
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
post_install_script()
develop.run(self)
with open("README.md", "r") as fh:
long_description = fh.read()
#OPTIONS = {'argv_emulation': True,
# 'plist': {
# 'PyRuntimeLocations': [
# '@executable_path/../Frameworks/libpython3.6m.dylib',
# '~/anaconda/lib/libpython3.6m.dylib'
# ]
# }}
OPTIONS = {'iconfile': 'ClinPhen_Logo_small.icns'}
setuptools.setup(
name='clinphen',
version='1.26',
app=['ClinPhenApp'],
scripts=['clinphen', 'clinphen_bulk'],
options={'py2app': OPTIONS},
author="Cole A. Deisseroth",
author_email="cdeisser@stanford.edu",
description="An automatic phenotype extractor",
long_description=long_description,
long_description_content_type="text/markdown",
url="http://bejerano.stanford.edu/clinphen/",
packages=setuptools.find_packages() + ['clinphen_src', 'appJar'],
include_package_data=True,
install_requires=['nltk==3.4', 'six==1.12.0', 'pandas==0.20.1'],
setup_requires=['py2app'],
classifiers=[
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
],
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
},
)