Compare commits
1 Commits
ef9cc23744
...
664c1c3189
Author | SHA1 | Date | |
---|---|---|---|
|
664c1c3189 |
11
setup.py
11
setup.py
@ -1,3 +1,6 @@
|
|||||||
|
import shutil
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
NAME = 'Greenhouse'
|
NAME = 'Greenhouse'
|
||||||
@ -13,3 +16,11 @@ PACKAGE_DATA = {'greenhouse': ['templates/*', 'static/css/*', 'static/scripts/*'
|
|||||||
setup(name=NAME, version=VERSION, long_description=__doc__, author=AUTHOR, author_email=EMAIL,
|
setup(name=NAME, version=VERSION, long_description=__doc__, author=AUTHOR, author_email=EMAIL,
|
||||||
packages=PACKAGES, include_package_data=True, package_data=PACKAGE_DATA, zip_safe=False,
|
packages=PACKAGES, include_package_data=True, package_data=PACKAGE_DATA, zip_safe=False,
|
||||||
install_requires=REQUIRES)
|
install_requires=REQUIRES)
|
||||||
|
|
||||||
|
if sys.argv[1] == 'install':
|
||||||
|
try:
|
||||||
|
os.makedirs(CONFIG_FOLDER)
|
||||||
|
shutil.copyfile(CONFIG_FILE, os.path.join(CONFIG_FOLDER, CONFIG_FILE))
|
||||||
|
except FileExistsError:
|
||||||
|
#FIXME: handle overwriting the config file
|
||||||
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user