Closed madscatt closed 8 years ago
We need setup from numpy due to fortran extensions. You can get the develop option by adding
import setuptools
before the
from numpy.distutils.core import Extension, setup
import
I just looked at this again and mostly confirmed what you have here. To use the develop option, to avoid reinstalling when changing code, Extensions
and setup
need to be imported from setuptools
rather than from numpy.distutils.core
. This breaks the current wrapped Fortran code. In short, it seems a much larger change to make this happen than time currently permits.
There is an open stack overflow questios related to this exact question. The comments point to using Cython to move away from the legacy requirements of numpy's distutils. This is worth looking at eventually.
Currently, the setup.py does not support the develop option, allowing one to run edited code without re-installing.
error: invalid command 'develop'
I tried using
try: from setuptools import setup except ImportError: pass This led to a new error:
Well, sasmol & distutils has to be re-addressed, especially with Python 3.X details.
Keep the comments coming, now worries.