X-DataInitiative / tick

Module for statistical learning, with a particular emphasis on time-dependent modelling
https://x-datainitiative.github.io/tick/
BSD 3-Clause "New" or "Revised" License
480 stars 105 forks source link

fixes to install on mac M1 from source #488

Open gdupret opened 2 years ago

gdupret commented 2 years ago

compiling from source on macos M1

I had to create a symlink in the build directory for installation from source to work: ln -s lib.macosx-12-arm64-cpython-39 lib.macosx-12-arm64-3.9 otherwise I would get: clang: error: no such file or directory: '/Users/path_to_cloned_directory/tick/build/lib.macosx-12-arm64-3.9/tick/array/build/_array.cpython-39-darwin.so'

I also needed to set "export TICK_WERROR=0"

suchanun commented 1 year ago

Hi I want to follow your solution, what I did was: git clone https://github.com/X-DataInitiative/tick --depth 1 --recursive -b master tick cd tick python3 setup.py bdist_wheel --> got error here so I created the symlink as you mentioned, export TICK_WERROR=0, then I rerum this line and still got an error

any ideas? Thank you so much!

@gdupret

PhilipDeegan commented 1 year ago

for OSX, we have the actions disabled atm while we assess somethings, but in future you should check that file like here

python setup.py build_ext --inplace