ntamas / plfit

Fitting power-law distributions to empirical data, according to the method of Clauset, Shalizi and Newman
GNU General Public License v2.0
47 stars 17 forks source link

Support Python 3.12 #46

Closed dotlambda closed 6 months ago

dotlambda commented 6 months ago

Python 3.12 removed distutils: https://peps.python.org/pep-0632/ Thus building plfit with Python 3.12 fails with

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
CMake Error at src/CMakeLists.txt:84 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "plfit_python".
ntamas commented 6 months ago

This is now fixed in 24b7d9b; tested on macOS with Python 3.12 from Homebrew. If you are running into problems on other platforms, let me know.