Преглед изворни кода

Removed prefix from modules in

iss7
Trevor Irons пре 5 година
родитељ
комит
fddfb1ab25

+ 3
- 1
Modules/FDEM1D/python/CMakeLists.txt Прегледај датотеку

@@ -3,7 +3,9 @@
3 3
 add_library(pyFDEM1D MODULE pyFDEM1D.cpp)
4 4
 target_link_libraries(pyFDEM1D PRIVATE pybind11::module lemmacore fdem1d )
5 5
 set_target_properties(pyFDEM1D PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}"
6
-                                       SUFFIX "${PYTHON_MODULE_EXTENSION}")
6
+                                       SUFFIX "${PYTHON_MODULE_EXTENSION}"
7
+                                                      OUTPUT_NAME "FDEM1D"
8
+)
7 9
 
8 10
 install(TARGETS pyFDEM1D
9 11
 	COMPONENT python

+ 1
- 1
Modules/FDEM1D/python/pyFDEM1D.cpp Прегледај датотеку

@@ -24,7 +24,7 @@
24 24
 
25 25
 namespace py = pybind11;
26 26
 
27
-PYBIND11_MODULE(pyFDEM1D, m) {
27
+PYBIND11_MODULE(FDEM1D, m) {
28 28
 
29 29
     py::add_ostream_redirect(m, "ostream_redirect");
30 30
 

+ 10
- 1
Modules/LemmaCore/python/CMakeLists.txt Прегледај датотеку

@@ -5,5 +5,14 @@
5 5
 add_library(pyLemmaCore MODULE pyLemmaCore.cpp)
6 6
 target_link_libraries(pyLemmaCore PRIVATE pybind11::module lemmacore )
7 7
 set_target_properties(pyLemmaCore PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}"
8
-                                         SUFFIX "${PYTHON_MODULE_EXTENSION}")
8
+                                             SUFFIX "${PYTHON_MODULE_EXTENSION}"
9
+                                             OUTPUT_NAME "LemmaCore"
10
+)
9 11
 
12
+
13
+install(TARGETS pyLemmaCore
14
+	COMPONENT python
15
+	RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
16
+	LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
17
+	ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
18
+)

+ 1
- 1
Modules/LemmaCore/python/pyLemmaCore.cpp Прегледај датотеку

@@ -24,7 +24,7 @@
24 24
 
25 25
 namespace py = pybind11;
26 26
 
27
-PYBIND11_MODULE(pyLemmaCore, m) {
27
+PYBIND11_MODULE(LemmaCore, m) {
28 28
 
29 29
     py::add_ostream_redirect(m, "ostream_redirect");
30 30
 

+ 2
- 2
python/setup.py Прегледај датотеку

@@ -12,7 +12,7 @@ class BinaryDistribution(Distribution):
12 12
 
13 13
 setup(
14 14
   name             = 'pyLemma',
15
-  version          = '0.0.2', 
15
+  version          = '0.0.4', 
16 16
   author           = 'Trevor Irons and others',
17 17
   author_email     = 'Trevor.Irons@lemmasoftware.org',
18 18
   description      = 'A short description of the app/lib',
@@ -34,7 +34,7 @@ setup(
34 34
     #'pyLemma': ['pyFDEM1D.*.so']
35 35
     #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so']
36 36
     #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so']
37
-    '': ['pyFDEM1D.*.so']
37
+    '': ['LemmaCore.*.so','FDEM1D.*.so']
38 38
   },
39 39
   zip_safe=False,
40 40
   distclass=BinaryDistribution,

Loading…
Откажи
Сачувај