-
Notifications
You must be signed in to change notification settings - Fork 130
Description
If you found a bug in python-ldap, or would request a new feature,
this is the place to let us know.
Please describe the issue and your environment here.
Issue description:
command: LDFLAGS="-L/opt/homebrew/opt/openldap/lib" CPPFLAGS="-I/opt/homebrew/opt/openldap/include" pip3 --no-cache install python-ldap==3.4.0 --global-option=build_ext --global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
WARNING: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
Collecting python-ldap==3.4.0
Downloading python-ldap-3.4.0.tar.gz (376 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 376.2/376.2 kB 809.0 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyasn1-modules>=0.1.5
Downloading pyasn1-modules-0.2.8.tar.gz (242 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.9/242.9 kB 5.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting pyasn1>=0.3.7
Downloading pyasn1-0.4.8.tar.gz (146 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 146.8/146.8 kB 6.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Skipping wheel build for pyasn1, due to binaries being disabled for it.
Skipping wheel build for pyasn1-modules, due to binaries being disabled for it.
Building wheels for collected packages: python-ldap
Building wheel for python-ldap (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for python-ldap (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
running bdist_wheel
running build
running build_py
running egg_info
writing Lib/python_ldap.egg-info/PKG-INFO
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/private/var/folders/9b/n18czkb93839xmy73vf1hwzw0000gq/T/pip-build-env-043whsol/overlay/lib/python3.8/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
no previously-included directories found matching 'Doc/.build'
adding license file 'LICENCE'
running build_ext
building '_ldap' extension
In file included from Modules/LDAPObject.c:3:
Modules/common.h:9:10: fatal error: 'Python.h' file not found
#include "Python.h"
^~~~~~~~~~
1 error generated.
/private/var/folders/9b/n18czkb93839xmy73vf1hwzw0000gq/T/pip-build-env-043whsol/overlay/lib/python3.8/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'slapdtest.certs' as data is deprecated, please list it in packages
.
!!
############################
# Package would be ignored #
############################
Python recognizes 'slapdtest.certs' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'slapdtest.certs' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'slapdtest.certs' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-ldap
Failed to build python-ldap
ERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-based projects
Steps to reproduce:
Operating system: macos monterey 12.1, apple M1
Python version: 3.8.6
python-ldap version: 3.4.0