We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99cd3d3 commit 12481e9Copy full SHA for 12481e9
2 files changed
requirements/conda.txt
@@ -1,9 +1,6 @@
1
-boost
2
-numpy
3
libdiffpy
4
-setuptools
+libboost-devel
+libobjcryst
+pyobjcryst
5
diffpy.structure
6
-gsl
7
-# periodictable
8
-# pyobjcryst (up to py3.11 for mac)
9
-# dlfcn-win32 (for windows)
+periodictable
setup.py
@@ -61,9 +61,14 @@ def get_objcryst_libraries():
61
62
libs = []
63
for fn in os.listdir(libdir):
64
- low = fn.lower()
65
- if "objcryst" in low:
66
- libs.append(os.path.splitext(fn)[0])
+ stem = Path(fn).stem
+ if "objcryst" not in stem.lower():
+ 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
+
72
if not libs:
73
raise RuntimeError(f"No ObjCryst libraries found in {libdir}")
74
return libs
0 commit comments