Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
0.18.2
0.19.0
======

* Update python 3.10 to 3.10.17:
https://www.python.org/downloads/release/python-31017/
* Update python 3.13 to 3.13.3
* Update libxcrypt to 4.4.38
* Update libffi to 3.4.8
* Update gdbm to 1.25
* Include libstdc++ in relenv lib
* Update environment with buildenv when RELENV_BUILDENV environment is set.
* Include libstdc++ in relenv's lib directory instead of passing
-static-libstdc++
* Clean up duplicate options in sysconfig data.
* Work with setuptools >= 72.2.0
* Default to positition indipendent code gen
* Add --download-only option to build


0.18.1
Expand Down
7 changes: 7 additions & 0 deletions relenv/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ def setup_parser(subparsers):
action="store_true",
help="Force downloading source tarballs even if they exist",
)
build_subparser.add_argument(
"--download-only",
default=False,
action="store_true",
help="Stop after downloading source tarballs",
)
build_subparser.add_argument(
"--step",
dest="steps",
Expand Down Expand Up @@ -179,6 +185,7 @@ def signal_handler(signal, frame):
clean=args.clean,
cleanup=not args.no_cleanup,
force_download=args.force_download,
download_only=args.download_only,
show_ui=show_ui,
log_level=args.log_level.upper(),
)
23 changes: 19 additions & 4 deletions relenv/build/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,6 @@ def __init__(
recipies=None,
build_default=build_default,
populate_env=populate_env,
force_download=False,
arch="x86_64",
version="",
):
Expand All @@ -824,7 +823,6 @@ def __init__(

self.build_default = build_default
self.populate_env = populate_env
self.force_download = force_download
self.toolchains = get_toolchain(root=self.dirs.root)
self.set_arch(self.arch)

Expand All @@ -842,7 +840,6 @@ def copy(self, version, checksum):
recipies,
self.build_default,
self.populate_env,
self.force_download,
self.arch,
version,
)
Expand Down Expand Up @@ -1207,6 +1204,7 @@ def __call__(
clean=True,
cleanup=True,
force_download=False,
download_only=False,
show_ui=False,
log_level="WARNING",
):
Expand Down Expand Up @@ -1267,6 +1265,8 @@ def __call__(
# Start a process for each build passing it an event used to notify each
# process if it's dependencies have finished.
self.download_files(steps, force_download=force_download, show_ui=show_ui)
if download_only:
return
self.build(steps, cleanup, show_ui=show_ui, log_level=log_level)

def check_versions(self):
Expand Down Expand Up @@ -1407,7 +1407,13 @@ def install_runtime(sitepackages):
relenv = sitepackages / "relenv"
os.makedirs(relenv, exist_ok=True)

for name in ["runtime.py", "relocate.py", "common.py", "__init__.py"]:
for name in [
"runtime.py",
"relocate.py",
"common.py",
"buildenv.py",
"__init__.py",
]:
src = MODULE_DIR / name
dest = relenv / name
with io.open(src, "r") as rfp:
Expand Down Expand Up @@ -1495,6 +1501,15 @@ def find_pythonlib(libdir):
format_shebang("../../../bin/python3"),
)

shutil.copy(
pathlib.Path(dirs.toolchain)
/ env["RELENV_HOST"]
/ "sysroot"
/ "lib"
/ "libstdc++.so.6",
libdir,
)

# Moved in python 3.13 or removed?
if (pymodules / "cgi.py").exists():
patch_shebang(
Expand Down
3 changes: 1 addition & 2 deletions relenv/build/darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def build_python(env, dirs, logfp):
build.add(
"XZ",
download={
"fallback_url": "http://tukaani.org/xz/xz-{version}.tar.gz",
"url": "https://woz.io/relenv/dependencies/xz-{version}.tar.gz",
"url": "http://tukaani.org/xz/xz-{version}.tar.gz",
"version": "5.6.2",
"checksum": "0d6b10e4628fe08e19293c65e8dbcaade084a083",
},
Expand Down
Loading
Loading