-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
37 lines (29 loc) · 904 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
import atexit
import sys
import os
from setuptools import setup, find_packages
from setuptools.command.develop import develop
class Develop(develop):
def run(self):
pkn = self.config_vars.get('dist_name')
def _post_install():
def find_module_path():
for p in sys.path:
if os.path.isdir(p) and pkn in os.listdir(p):
return os.path.join(p, pkn)
from subprocess import call
call(['yarn'], cwd=find_module_path())
atexit.register(_post_install)
develop.run(self)
setup(
name='flask-admin-lte',
packages=find_packages(),
version='0.2',
description='Integrates LteAdmin into flask-admin',
author='Alex Belyaev',
author_email='[email protected]',
cmdclass={'develop': Develop},
install_requires=[
'flask-admin>=1.4.0'
],
)