Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install rfmini #4

Open
trichter opened this issue May 11, 2020 · 1 comment
Open

install rfmini #4

trichter opened this issue May 11, 2020 · 1 comment

Comments

@trichter
Copy link

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.

@jenndrei
Copy link
Owner

Thanks for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants