pymol-open-source icon indicating copy to clipboard operation
pymol-open-source copied to clipboard

WIP: Adding packaging with pyproject

Open ye11owSub opened this issue 1 year ago • 7 comments

I moved the build process to use the pyproject.toml file

Why it needs to be done:

  • It will be possible to add dependencies for the build step (such as numpy)
  • There will be a more modern way to manage linters, runtime dependencies and meta-information about the project.

Why has the current project form become a problem:

  • pyproject.toml with steuptools as a backend doesn't have a standard approach to building C extensions in parallel.
  • Parsing all possible paths for libraries can be resource-intensive and difficult to maintain.

I've chosen Meson because:

  • Meson is a fast and user-friendly build system.
  • No need for parsing files - Meson searches for dependencies itself and downloads them when needed.
  • Pymol is a project that relies heavily on C/CPP extensions. So, I checked other projects in similar situations. Projects like scipy, numpy, scikit-learn and many more use Meson as their build system.

ye11owSub avatar May 19 '24 22:05 ye11owSub