File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
from setuptools import setup
3
3
from setuptools .command .develop import develop as _develop
4
4
from setuptools .command .sdist import sdist as _sdist
5
+ from setuptools .command .install import install as _install
5
6
6
7
7
8
def install_regexes ():
@@ -37,6 +38,11 @@ def run(self):
37
38
_sdist .run (self )
38
39
39
40
41
+ class install (_install ):
42
+ def run (self ):
43
+ install_regexes ()
44
+ _install .run (self )
45
+
40
46
setup (
41
47
name = 'ua-parser' ,
42
48
version = '0.5.0' ,
@@ -50,10 +56,12 @@ def run(self):
50
56
url = 'https://github.com/ua-parser/uap-python' ,
51
57
include_package_data = True ,
52
58
package_data = {'ua_parser' : ['regexes.yaml' , 'regexes.json' ]},
59
+ setup_requires = ['pyyaml' ],
53
60
install_requires = ['pyyaml' ],
54
61
cmdclass = {
55
62
'develop' : develop ,
56
63
'sdist' : sdist ,
64
+ 'install' : install ,
57
65
},
58
66
classifiers = [
59
67
'Development Status :: 4 - Beta' ,
You can’t perform that action at this time.
0 commit comments