2
2
from setuptools import Extension
3
3
from setuptools .command import build_ext
4
4
5
- import setupinfo
5
+ import xmlsec_setupinfo
6
6
7
7
8
8
class BuildExt (build_ext .build_ext ):
@@ -12,41 +12,41 @@ def run(self):
12
12
build_ext .build_ext .run (self )
13
13
14
14
def patch_options (self ):
15
- ext = self .ext_map [setupinfo .name ()]
16
- ext .define_macros .extend (setupinfo .define_macros ())
17
- ext .include_dirs .extend (setupinfo .include_dirs ())
18
- ext .libraries .extend (setupinfo .libraries ())
19
- ext .library_dirs .extend (setupinfo .library_dirs ())
15
+ ext = self .ext_map [xmlsec_setupinfo .name ()]
16
+ ext .define_macros .extend (xmlsec_setupinfo .define_macros ())
17
+ ext .include_dirs .extend (xmlsec_setupinfo .include_dirs ())
18
+ ext .libraries .extend (xmlsec_setupinfo .libraries ())
19
+ ext .library_dirs .extend (xmlsec_setupinfo .library_dirs ())
20
20
21
21
22
22
_xmlsec = Extension (
23
- setupinfo .name (),
24
- sources = setupinfo .sources (),
25
- extra_compile_args = setupinfo .cflags (),
23
+ xmlsec_setupinfo .name (),
24
+ sources = xmlsec_setupinfo .sources (),
25
+ extra_compile_args = xmlsec_setupinfo .cflags (),
26
26
libraries = [],
27
27
library_dirs = [],
28
28
include_dirs = [],
29
29
define_macros = [],
30
30
)
31
31
32
32
setup (
33
- name = setupinfo .name (),
34
- version = setupinfo .version (),
35
- description = setupinfo .description (),
33
+ name = xmlsec_setupinfo .name (),
34
+ version = xmlsec_setupinfo .version (),
35
+ description = xmlsec_setupinfo .description (),
36
36
ext_modules = [_xmlsec ],
37
37
cmdclass = {'build_ext' : BuildExt },
38
- setup_requires = setupinfo .requirements (),
39
- install_requires = setupinfo .requirements (),
38
+ setup_requires = xmlsec_setupinfo .requirements (),
39
+ install_requires = xmlsec_setupinfo .requirements (),
40
40
author = "Bulat Gaifullin" ,
41
41
42
42
maintainer = 'Bulat Gaifullin' ,
43
43
maintainer_email = '[email protected] ' ,
44
44
url = 'https://github.com/mehcode/python-xmlsec' ,
45
- download_url = "https://github.com/mehcode/python-xmlsec/archive/v%s.tar.gz" % setupinfo .version (),
45
+ download_url = "https://github.com/mehcode/python-xmlsec/archive/v%s.tar.gz" % xmlsec_setupinfo .version (),
46
46
license = 'MIT' ,
47
47
keywords = ["xmlsec" ],
48
48
classifiers = [
49
- setupinfo .dev_status (),
49
+ xmlsec_setupinfo .dev_status (),
50
50
'Intended Audience :: Developers' ,
51
51
'Intended Audience :: System Administrators' ,
52
52
'License :: OSI Approved :: MIT License' ,
0 commit comments