Python package setup: setup.py with customisation to handle wrapped fortran
Clash Royale CLAN TAG #URR8PPP Python package setup: setup.py with customisation to handle wrapped fortran I have a python package i would like to distribute. I have the package set-up and am able to download the tarball, unzip and install it using: python setup.py install which works fine. I would also like to upload the package to PyPi, and enable it to be installed using pip. However, the package contains f2py wrapped fortran, and which needs to be compiled on build with the resulting .so files moved to the eventual installation folder. I am confused as to how to do this using: python3 setup.py sdist followed by: pip3 install pkg_name_here.tar.gz The reason being that when I run python3 setup.py sdist the custom commands are being run, part of which is trying to move the compiled *so files to the installation folder, which has not yet been created. An example of the code outline i have used is in this example here: from setuptools.command.install import install from setuptools.comma...