Skip to content

add Pypy3 build tools#4829

Open
chouettevan wants to merge 12 commits intoBlackArch:masterfrom
chouettevan:pypy3-build-tools
Open

add Pypy3 build tools#4829
chouettevan wants to merge 12 commits intoBlackArch:masterfrom
chouettevan:pypy3-build-tools

Conversation

@chouettevan
Copy link
Contributor

@chouettevan chouettevan commented Jan 18, 2026

This PR adds part of the pypy build system. specifically, the packages included here are those who do not depend on anything other than pypy3-flit-core. the rest of the build system should be added in a subsequent PR. this PR follows #4813 and should eventually allow pypy-angr to be integrated to blackarch linux

@chouettevan chouettevan force-pushed the pypy3-build-tools branch 13 times, most recently from 8588dd1 to 1d33ba2 Compare January 21, 2026 01:30
Copy link
Contributor

@noraj noraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure to understand the changes on packages/pypy3-flit-core/PKGBUILD?

@chouettevan
Copy link
Contributor Author

chouettevan commented Jan 23, 2026

I'm not sure to understand the changes on packages/pypy3-flit-core/PKGBUILD?

the version of pypy in arch linux is pypy 3.11, whose site packages are on /opt/pypy3/lib/pypy3_3.11/ .this change ensures
pypy3-flit-core is installed to the correct location.

@chouettevan chouettevan marked this pull request as ready for review January 24, 2026 12:53
@chouettevan chouettevan requested a review from noptrix as a code owner January 24, 2026 12:53
@chouettevan chouettevan marked this pull request as draft January 24, 2026 12:54
@chouettevan chouettevan force-pushed the pypy3-build-tools branch 3 times, most recently from a75591c to 4608629 Compare January 24, 2026 13:04
@chouettevan chouettevan force-pushed the pypy3-build-tools branch 2 times, most recently from 187c997 to 97d02e5 Compare January 24, 2026 13:11
@chouettevan chouettevan marked this pull request as ready for review January 24, 2026 13:12
@chouettevan chouettevan changed the title Pypy3 build tools add Pypy3 build tools Mar 1, 2026
@chouettevan
Copy link
Contributor Author

why has this not been merged? Is there something wrong with my PR?

@noraj
Copy link
Contributor

noraj commented Mar 3, 2026

I only did pre-review. noptrix must be busy.

arch=('any')
url='https://github.com/pypa/flit'
license=('BSD-3-Clause')
depends=('python' 'pypy3')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please leave 'python' here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary, but if you want to,why not?

pkgver=80.9.0
pkgrel=1
epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use single quotes unless single quote is used inside the description. please use a dot at the end.

epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=(any)
url="https://${_pkgname}.pypa.io"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URL without variables please

Comment on lines +18 to +19
cd "${srcdir}"/${_pkgname}-${pkgver}
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env pypy|" setup.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove $srcdir here. not needed

}

# Rename the following function to check() to enable checking
_check() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't use check() functions. remove it please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not? check() functions can be useful to detect missing dependencies,especially in interpereted languages like python,where a missing package will not cause a build error,but a runtime error.


package() {
depends=(pypy3)
cd "${srcdir}/${_pkgname}-${pkgver}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove $srcdir here please

Copy link
Contributor

@noptrix noptrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this PR. please have a look on my review.

@chouettevan
Copy link
Contributor Author

Most changes have been made.all requests for modifications have been answered to

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

Successfully merging this pull request may close these issues.

3 participants