Skip to content

Commit 5060adb

Browse files
Francois BonneauBotellaA
Francois Bonneau
authored andcommitted
fix(CMake): add mylib.py to the wheel
1 parent 10c9a28 commit 5060adb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

bindings/python/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ configure_file(
2828
__init__.py
2929
${PROJECT_BINARY_DIR}/wheel/opengeode_mymodule/__init__.py
3030
)
31+
configure_file(
32+
mylib.py
33+
${PROJECT_BINARY_DIR}/wheel/opengeode_mymodule/mylib.py
34+
)
3135
configure_file(
3236
setup.py
3337
${PROJECT_BINARY_DIR}/wheel/setup.py

bindings/python/tests/mylib/test-py-hello-world.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
# SOFTWARE.
2121

22-
import os, sys, platform
23-
if sys.version_info >= (3,8,0) and platform.system() == "Windows":
22+
import os
23+
import sys
24+
import platform
25+
if sys.version_info >= (3, 8, 0) and platform.system() == "Windows":
2426
for path in [x.strip() for x in os.environ['PATH'].split(';') if x]:
2527
os.add_dll_directory(path)
2628

27-
import opengeode
2829
import opengeode_mymodule_py_mylib as mylib
2930

3031
if __name__ == '__main__':

0 commit comments

Comments
 (0)