-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (27 loc) · 936 Bytes
/
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
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from subprocess import check_call
# class Post_Develop_Command(develop):
# """Post-installation for development mode."""
# def run(self):
# check_call("apt-get install this-package".split())
# develop.run(self)
class Post_Install_Command(install):
"""Post-installation for installation mode."""
def run(self):
check_call("mkdir /test".split())
install.run(self)
setup(
name='configsite',
version='0.1',
description='A configuration site for DMS demo.',
package_data={'': ['license.txt']},
include_package_data=True,
packages=find_packages(exclude=['ez_setup', 'tests', 'tests.*']),
install_requires=[]
# cmdclass={
# # 'develop': Post_Develop_Command,
# 'install': Post_Install_Command
# }
)