|
8 | 8 | Scripts: pdffit2
|
9 | 9 | """
|
10 | 10 |
|
| 11 | +import glob |
11 | 12 | import os
|
12 | 13 | import re
|
13 | 14 | import sys
|
14 |
| -import glob |
15 | 15 | import warnings
|
16 | 16 |
|
17 | 17 | from setuptools import Extension, find_packages, setup
|
18 | 18 |
|
19 |
| - |
20 | 19 | # Use this version when git data are not available, like in git zip archive.
|
21 | 20 | # Update when tagging a new release.
|
22 |
| -FALLBACK_VERSION = '1.4.3' |
| 21 | +FALLBACK_VERSION = "1.4.3" |
23 | 22 |
|
24 | 23 | MYDIR = os.path.dirname(os.path.abspath(__file__))
|
25 | 24 |
|
@@ -106,29 +105,28 @@ def get_gsl_config_win():
|
106 | 105 |
|
107 | 106 | # define extension arguments here
|
108 | 107 | ext_kws = {
|
109 |
| - 'include_dirs': include_dirs, |
110 |
| - 'libraries': libraries, |
111 |
| - 'library_dirs': library_dirs, |
112 |
| - 'define_macros': define_macros, |
113 |
| - 'extra_compile_args': extra_compile_args, |
114 |
| - 'extra_link_args': extra_link_args, |
115 |
| - 'extra_objects': extra_objects, |
| 108 | + "include_dirs": include_dirs, |
| 109 | + "libraries": libraries, |
| 110 | + "library_dirs": library_dirs, |
| 111 | + "define_macros": define_macros, |
| 112 | + "extra_compile_args": extra_compile_args, |
| 113 | + "extra_link_args": extra_link_args, |
| 114 | + "extra_objects": extra_objects, |
116 | 115 | }
|
117 | 116 |
|
| 117 | + |
118 | 118 | # define extension here
|
119 | 119 | def create_extensions():
|
120 |
| - ext = Extension( |
121 |
| - "diffpy.pdffit2.pdffit2", |
122 |
| - glob.glob('src/extensions/**/*.cc'), |
123 |
| - **ext_kws) |
| 120 | + ext = Extension("diffpy.pdffit2.pdffit2", glob.glob("src/extensions/**/*.cc"), **ext_kws) |
124 | 121 | return [ext]
|
125 | 122 |
|
| 123 | + |
126 | 124 | setup_args = dict(
|
127 |
| - ext_modules = [], |
| 125 | + ext_modules=[], |
128 | 126 | )
|
129 | 127 |
|
130 | 128 | if __name__ == "__main__":
|
131 |
| - setup_args['ext_modules'] = create_extensions() |
| 129 | + setup_args["ext_modules"] = create_extensions() |
132 | 130 | setup(**setup_args)
|
133 | 131 |
|
134 | 132 | # End of file
|
0 commit comments