-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
40 lines (32 loc) · 893 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
34
35
36
37
38
39
from setuptools import setup, find_packages
from distutils.core import Command
class demo(Command):
description = "demonstrate menu configuration"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import os
for cmd in ["rex deploy rex.menu_demo",
"rex serve rex.menu_demo"]:
print("$", cmd)
os.spawnvp(0, cmd.split()[0], cmd.split())
setup(
name='rex.menu_demo',
version = "1.0.2",
description="Demo package for testing rex.menu",
package_dir={'': 'src'},
packages=find_packages('src'),
install_requires=[
'rex.menu',
'rex.deploy',
'rex.widget',
'rex.action',
'rex.widget_chrome',
],
cmdclass={'demo': demo},
rex_init='rex.menu_demo',
rex_static='static',
)