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

Build fails: meson-python: error: The dftd4 package is split between purelib and platlib: 'purelib/dftd4/__init__.py' and 'platlib/dftd4/_libdftd4.cpython-39.so', a "pure: false" argument may be missing in meson.build. It is recommended to set it in "import('python').find_installation()" #212

Closed
yurivict opened this issue Aug 15, 2023 · 1 comment

Comments

@yurivict
Copy link

Describe the bug

===>  Building for py39-dftd4-3.5.0
* Getting build dependencies for wheel...
* Building wheel...
+ meson setup /wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0 /wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0/.mesonpy-vzpex62q/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0/.mesonpy-vzpex62q/build/meson-python-native-file.ini
The Meson build system
Version: 1.2.0
Source dir: /wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0
Build dir: /wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0/.mesonpy-vzpex62q/build
Build type: native build
Project name: dftd4
Project version: 3.5.0
C compiler for the host machine: cc (clang 16.0.6 "FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)")
C linker for the host machine: cc ld.lld 16.0.6
Host machine cpu family: x86
Host machine cpu: i386
Found pkg-config: /usr/local/bin/pkg-config (1.8.1)
Run-time dependency dftd4 found: YES 3.5.0
Program python3 (cffi) found: YES (/usr/local/bin/python3.9) modules: cffi
Run-time dependency python found: YES 3.9
Configuring _libdftd4.h with command
Configuring _libdftd4.c with command
Build targets in project: 2

dftd4 3.5.0

  User defined options
    Native files: /wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0/.mesonpy-vzpex62q/build/meson-python-native-file.ini
    buildtype   : release
    b_ndebug    : if-release
    b_vscrt     : md

Found ninja-1.11.1 at /usr/local/bin/ninja
+ /usr/local/bin/ninja
[1/3] Compiling C object dftd4/lib_libdftd4.a.p/meson-generated_..__libdftd4.c.o
[2/3] Linking static target dftd4/lib_libdftd4.a
[3/3] Linking target dftd4/_libdftd4.cpython-39.so
+ meson install --quiet --no-rebuild --destdir /wrkdirs/usr/ports/science/py-dftd4/work-py39/dftd4-3.5.0/.mesonpy-vzpex62q/install

meson-python: error: The dftd4 package is split between purelib and platlib: 'purelib/dftd4/__init__.py' and 'platlib/dftd4/_libdftd4.cpython-39.so', a "pure: false" argument may be missing in meson.build. It is recommended to set it in "import('python').find_installation()"

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

To Reproduce
Regular build.

Additional context
Version: 3.5.0
meson-1.2.0
FreeBSD 13.2

It looks like the problem occurred after this commit:

devel/meson-python: update to 0.13.2

@awvwgk
Copy link
Member

awvwgk commented Aug 15, 2023

Fixed with #210 already.

@awvwgk awvwgk closed this as completed Aug 15, 2023
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