From 943331ad8e8c77376ea4de64644545b296a4e6d9 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 9 Nov 2023 23:23:54 +0100 Subject: [PATCH] fix --- src/python_bindings/INSTALL.md | 27 +++++++++++++++++-- src/python_bindings/libscientific/__init__.py | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/python_bindings/INSTALL.md b/src/python_bindings/INSTALL.md index 600a45c9..a8126843 100644 --- a/src/python_bindings/INSTALL.md +++ b/src/python_bindings/INSTALL.md @@ -16,12 +16,35 @@ Compile from source cd libscientific mkdir build cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ .. + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/ .. make -j5 sudo make install cd ../src/python_bindings python3 setup.py install --user +Create portable linux/osx python package +---------------------------------------- + cd libscientific + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DPORTABLE_PYTHON_PACKAGE=True .. + make -j5 + sudo make install + cd ../src/python_bindings + On Linux: python3 setup.py bdist_wheel --plat-name manylinux1_x86_64 + On OSX: python3 setup.py bdist_wheel --plat-name macosx-14-0-arm64 + + +Create portable Windows python package (MSYS2/Mingw64) +------------------------------------------------------ + mkdir build + cd build + cmake -G "MinGW Makefiles" -CMAKE_BUILD_TYPE=Release -DPORTABLE_PYTHON_PACKAGE=True .. + mingw32-make + cd ../src/python_bindings/ + python3 setup.py bdist_wheel --plat-name win_amd64 + +N.B.: Use pip3 debug --verbose to get the compatible platform name tags Homebrew OSX ------------ @@ -52,4 +75,4 @@ However some recommendations before open a Pull Request: * A test example is necessary. Probably your code will be integrated but some quality controls and goals -have to be respected. +have to be respected. \ No newline at end of file diff --git a/src/python_bindings/libscientific/__init__.py b/src/python_bindings/libscientific/__init__.py index 6d2f92bb..fb38d9b2 100644 --- a/src/python_bindings/libscientific/__init__.py +++ b/src/python_bindings/libscientific/__init__.py @@ -62,4 +62,4 @@ from . import clustering # __version__ = info.Scientific().__version__ -__version__ = "1.6.0" +__version__ = "1.6.1"