Skip to content

Commit e05d8b0

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent 2d020a6 commit e05d8b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import glob
1212
import os
1313
import re
14-
import sys
1514
import shutil
15+
import sys
1616
import warnings
1717

1818
from setuptools import Extension, setup
@@ -84,18 +84,20 @@ def get_gsl_config_win():
8484

8585
return {"include_dirs": [inc], "library_dirs": [lib]}
8686

87+
8788
class CustomBuildExt(build_ext):
8889
def run(self):
8990
super().run()
9091
gsl_path = os.environ.get("GSL_PATH") or os.path.join(os.environ.get("CONDA_PREFIX", ""), "Library")
91-
92+
9293
bin_path = os.path.join(gsl_path, "bin")
9394
dest_path = os.path.join(self.build_lib, "diffpy", "pdffit2")
9495
os.makedirs(dest_path, exist_ok=True)
9596

9697
for dll_file in glob.glob(os.path.join(bin_path, "gsl*.dll")):
9798
shutil.copy(dll_file, dest_path)
9899

100+
99101
# ----------------------------------------------------------------------------
100102

101103
# compile and link options

0 commit comments

Comments
 (0)