Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marco committed Nov 9, 2023
1 parent ca70ba1 commit 943331a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
27 changes: 25 additions & 2 deletions src/python_bindings/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/python_bindings/libscientific/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@
from . import clustering

# __version__ = info.Scientific().__version__
__version__ = "1.6.0"
__version__ = "1.6.1"

0 comments on commit 943331a

Please sign in to comment.