-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (50 loc) · 1.8 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from setuptools import setup
from setuptools.command.install import install as _install
from setuptools.command.develop import develop as _develop
import os
def _post_install(libname, libpath):
from js9 import j
# add this plugin to the config
c = j.core.state.configGet('plugins', defval={})
c[libname] = libpath
j.core.state.configSet('plugins', c)
print("****:%s:%s" % (libname, libpath))
j.do.execute("pip3 install git+https://github.com/gigforks/PyInotify")
j.tools.jsloader.generatePlugins()
j.tools.jsloader.copyPyLibs()
class install(_install):
def run(self):
_install.run(self)
libname = self.config_vars['dist_name']
libpath = os.path.join(os.path.dirname(os.path.abspath(__file__)), libname)
self.execute(_post_install, (libname, libpath), msg="Running post install task")
class develop(_develop):
def run(self):
_develop.run(self)
libname = self.config_vars['dist_name']
libpath = os.path.join(os.path.dirname(os.path.abspath(__file__)), libname)
self.execute(_post_install, (libname, libpath), msg="Running post install task")
setup(
name='JumpScale9AYS',
version='9.0.0',
description='Automation framework for cloud workloads ays lib',
url='https://github.com/Jumpscale/ays9',
author='GreenItGlobe',
author_email='[email protected]',
license='Apache',
packages=['JumpScale9AYS'],
install_requires=[
'JumpScale9>=9.0.0',
'JumpScale9Lib>=9.0.0',
'g8core>=1.0.0', # is not ok, because strictly spoken this is not part of ays9
'jsonschema>=2.6.0',
'python-jose>=1.3.2',
'sanic>=0.5.4'
],
cmdclass={
'install': install,
'develop': develop,
'developement': develop
},
scripts=['cmds/ays'],
)