jenndrei/BayHunter

install rfmini

Opened this issue · 1 comments

If anybody else stumbles upon some errors during installation of rfmini with recent python versions, here is how I solved mine.

I needed to delete the file rfmini.c. Furthermore I edited the setup.py script of rfmini (line with include_dirs):

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np

ext_modules=[
    Extension("rfmini", ["rfmini.pyx","greens.cpp","model.cpp","pd.cpp","synrf.cpp","wrap.cpp","fork.cpp"],
                  include_dirs=[np.get_include()])
]

setup(
  name = 'RfMini',
  cmdclass = {'build_ext': build_ext},
  ext_modules = ext_modules,
)

In my conda environment I installed the following packages:

conda install cython cxx-compiler

After that installation with pip was successful.

Thanks for sharing.