-1

I downloaded a module that uses Cython. I installed it after building the content as folows,

python setup.py build
python setup.py install

But I would like to make changes to the Cython parts of that module and recompile them. It turns out that I can't recompile the Cython files. In other words, I simply get this output when I build again,

build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
running build_scripts

without any changes beinf reflected in the installation directory.

My goal is to make changes to a Cython .pyx file that is part of a large module and have it recompiled and installed after every change I make.

Thanks.

IssamLaradji
  • 6,637
  • 8
  • 43
  • 68
  • What do you mean "you can't"? How did you install the module, and how did you try to recompile it? – BrenBarn Jan 27 '15 at 06:14
  • Well, if I build, I get this ``` customize UnixCCompiler customize UnixCCompiler using build_ext customize UnixCCompiler customize UnixCCompiler using build_ext running build_scripts ``` and nothing gets changed – IssamLaradji Jan 27 '15 at 06:15
  • I built it as follows, `python setup.py build` and I installed it using, `python setup.py install` – IssamLaradji Jan 27 '15 at 06:18
  • I would like to do the same build-install procedure after making changes to some of the Cython files. The changes aren't getting reflected in the installation directory when I do that. – IssamLaradji Jan 27 '15 at 06:20
  • Did you redo both the build and the install, or just the build? – BrenBarn Jan 27 '15 at 06:26
  • Both, nothing gets changed in the installation directory. – IssamLaradji Jan 27 '15 at 06:27

1 Answers1

1

You could try using python setup.py develop, as described in this question. After you make changes, do python setup.py develop again.

Community
  • 1
  • 1
BrenBarn
  • 242,874
  • 37
  • 412
  • 384