-
Notifications
You must be signed in to change notification settings - Fork 12
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
pip installation error #34
Comments
Checking out git checkout dalcinl/cython3
python3 -m pip install -e .
seems to solve this issue. |
Thanks! |
There is a PR #30 up for this. |
The author looks pretty busy. @dalcinl, let me know if I can help. Thanks for all your work. |
@benlandrum Yes, I'm quite busy, my open source workload is becoming unbearable. Are you able to build locally with the changes in #30? Maybe we should think of making a release that solves build issues, and address any issues with our CI infrastructure later. |
I'm able to The fix is probably version-dependent, so it'd benefit from CI. How bad are the CI problems right now? |
index d05d89b..983c06c 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,6 @@ import sys
import re
import platform
import sysconfig
-from distutils import ccompiler
from setuptools import setup
from setuptools.dist import Distribution
from setuptools.extension import Extension
@@ -58,9 +57,29 @@ def get_library_dirs():
append(dirs, prefix, 'lib')
return dirs
+def get_compiler():
+ """
+ Return a new compiler.
+
+ From https://github.com/pypa/setuptools/issues/2806#issuecomment-961805789.
+ """
+ build_ext = Distribution().get_command_obj("build_ext")
+ build_ext.finalize_options()
+
+ # Register an extension to ensure a compiler is created.
+ build_ext.extensions = [Extension("ignored", ["ignored.c"])]
+
+ # Disable building fake extensions.
+ build_ext.build_extensions = lambda: None
+
+ # Populate self.compiler.
+ build_ext.run()
+
+ return build_ext.compiler
+
def get_fftw_libs():
"""Return FFTW libraries"""
- compiler = ccompiler.new_compiler()
+ compiler = get_compiler()
library_dirs = get_library_dirs()
libs = {}
for d in ('float', 'double', 'long double'): |
Enabled the pipelines on a fork of mine https://github.com/benlandrum/mpi4py-fft. Will give them a shot and get back to you. Running into |
Hi,
I'm aiming to install mpi4py-fft using pip.
However, I ended up with the following error
The error is reproducible under various conditions
I would be grateful for any hint on how to resolve this issue.
Best,
Sebastian
The text was updated successfully, but these errors were encountered: