FluidityProject / fluidity

Fluidity
http://fluidity-project.org
Other
367 stars 115 forks source link

Account for distutils being deprecated and python3.10 becoming default on Ubuntu 22.04 #347

Closed Patol75 closed 2 years ago

Patol75 commented 2 years ago

Closes #346

I am opening this PR as a draft; it will be needed in the future given changes in the Python distribution. Please feel free to contribute, as it is likely I will not have the time to figure everything out.

I have tried to identify instances where distutils is used and replace them with equivalent calls from either setuptools or sysconfig. In some places, things work, but in others, they do not.

Something of potential interest is setuptools indicating that the setup.py approach is deprecated. Instead, pyproject.toml and setup.cfg files should be used, in combination with the build and pip packages. A fluidity package can be built this way, but I am not sure if it is relevant.