Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison files/patch-pypy_tool_release_package.py @ 78:a5f5a5ecec13
Do not write into the current directory while building the port: only use WRKDIR.
WRKDIR is given as PYPY_WRKDIR into the MAKE_ENV.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 03 Oct 2022 17:53:21 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 77:913b7ccce398 | 78:a5f5a5ecec13 |
|---|---|
| 1 --- pypy/tool/release/package.py.orig 2022-03-28 09:53:47 UTC | |
| 2 +++ pypy/tool/release/package.py | |
| 3 @@ -156,7 +156,11 @@ def generate_sysconfigdata(pypy_c, stdlib): | |
| 4 '--generate-posix-vars', | |
| 5 # Use PyPy-specific extension to get HOST_GNU_TYPE | |
| 6 'HOST_GNU_TYPE', host_gnu_type]) | |
| 7 - with open('pybuilddir.txt') as fid: | |
| 8 + pybuilddir_txt = 'pybuilddir.txt' | |
| 9 + pypy_wrkdir = os.environ.get("PYPY_WRKDIR") # this is set by FreeBSD port | |
| 10 + if pypy_wrkdir is not None: | |
| 11 + pybuilddir_txt = os.path.join(pypy_wrkdir, pybuilddir_txt) | |
| 12 + with open(pybuilddir_txt) as fid: | |
| 13 dirname = fid.read().strip() | |
| 14 assert os.path.exists(dirname) | |
| 15 sysconfigdata_names = os.listdir(dirname) |
