-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (23 loc) · 752 Bytes
/
setup.py
File metadata and controls
27 lines (23 loc) · 752 Bytes
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
#!/usr/bin/env python
import sys
import os
sdict = {
'name': 'gdrivesync',
'version': "0.1.0",
'install_requires': ['httplib2'],
'py_modules': ['gdrivesync'],
'data_files': [('%s/bin/' % sys.prefix, ['gdrivesync'])],
'author': 'Li Chun',
'url': 'https://github.com/socrateslee/gdrivesync',
'classifiers': ['Environment :: Console',
'Intended Audience :: Developers',
'Programming Language :: Python']
}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
exec_content = '#!%s/bin/python\nimport gdrivesync\ngdrivesync.main()\n' % sys.prefix
open('gdrivesync', 'w').write(exec_content)
os.system("chmod +x gdrivesync")
setup(**sdict)