File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
- boost
2
- numpy
3
1
libdiffpy
4
- setuptools
2
+ libboost-devel
3
+ libobjcryst
4
+ pyobjcryst
5
5
diffpy.structure
6
- gsl
7
- # periodictable
8
- # pyobjcryst (up to py3.11 for mac)
9
- # dlfcn-win32 (for windows)
6
+ periodictable
Original file line number Diff line number Diff line change @@ -61,9 +61,14 @@ def get_objcryst_libraries():
61
61
62
62
libs = []
63
63
for fn in os .listdir (libdir ):
64
- low = fn .lower ()
65
- if "objcryst" in low :
66
- libs .append (os .path .splitext (fn )[0 ])
64
+ stem = Path (fn ).stem
65
+ if "objcryst" not in stem .lower ():
66
+ continue
67
+ # strip a leading "lib" so that setuptools does -lObjCryst, not -llibObjCryst
68
+ if stem .startswith ("lib" ):
69
+ stem = stem [3 :]
70
+ libs .append (stem )
71
+
67
72
if not libs :
68
73
raise RuntimeError (f"No ObjCryst libraries found in { libdir } " )
69
74
return libs
You can’t perform that action at this time.
0 commit comments