You are not logged in.

#1 2025-07-21 17:24:18

RobertXY
Member
Registered: 2025-07-21
Posts: 3

pybind11 setup issue

pybind11 remove the setup.py and the setup dont work by default

I change the following lines and for me work:

build() {
  cd ${_base}-${pkgver}
  pypy3 setup.py build
}

package() {
  cd ${_base}-${pkgver}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" pypy3 setup.py install --prefix=/opt/pypy3 --root="$pkgdir" --skip-build --optimize='1'
  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

for

build() {
  cd ${_base}-${pkgver}
  python -m build
}

package() {
  cd ${_base}-${pkgver}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" pypy3 -m pip install . --prefix=/opt/pypy3 --root="$pkgdir"
  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

I hope that help to fix the issue

Offline

#2 2025-07-21 17:29:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,357

Re: pybind11 setup issue

I'm confused. What, exactly, are you trying to do? Where is this partial PKGBUILD from?

Online

#3 2025-07-21 22:27:58

RobertXY
Member
Registered: 2025-07-21
Posts: 3

Re: pybind11 setup issue

Hi:

The PKGBUILD is from the package pybind11. The package download the sources fron github. the team from pybind11 remove the file setup.py from the sources. When i try to update to pybind11 3.0.0-1 i get an error that said the setup.py not found.


They give me this link "https://packaging.python.org/en/latest/discussions/setup-py-deprecated/#what-commands-should-be-used-instead "

Offline

#4 2025-07-21 22:32:59

loqs
Member
Registered: 2014-03-06
Posts: 18,729

Re: pybind11 setup issue

RobertXY wrote:

Hi:
The PKGBUILD is from the package pybind11. The package download the sources fron github. the team from pybind11 remove the file setup.py from the sources. When i try to update to pybind11 3.0.0-1 i get an error that said the setup.py not found.

https://aur.archlinux.org/packages/pypy3-pybind11 is not https://archlinux.org/packages/extra/any/pybind11/ which does not use setup.py for the reasons you mentioned.
Edit:
Please consider notifying the maintainer of pypy3-pybind11 that their latest update https://aur.archlinux.org/cgit/aur.git/ … bf2f8b78c8 breaks the build.

Last edited by loqs (2025-07-21 22:35:41)

Offline

#5 2025-07-21 22:37:01

RobertXY
Member
Registered: 2025-07-21
Posts: 3

Re: pybind11 setup issue

OMG, Sorry for the mistake

Offline

#6 2025-07-21 22:40:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,186
Website

Re: pybind11 setup issue

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB