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

python313: Use automatic dependency generation #3772

Merged
merged 1 commit into from
Dec 20, 2024
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: 1 addition & 10 deletions build/python313/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,8 @@ BUILD_DEPENDS_IPS="
developer/pkg-config
ooce/developer/autoconf-archive
"
# The python ctypes module runs '/usr/bin/dump' from here.
RUN_DEPENDS_IPS="
compress/bzip2
database/sqlite-3
library/expat
library/libffi
library/libxml2
library/ncurses
library/readline
library/security/openssl-3
library/zlib
system/library/gcc-runtime
developer/object-file
"
XFORM_ARGS="-D PYTHONVER=$MVER"
Expand Down
10 changes: 7 additions & 3 deletions build/python313/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ license LICENSE license=PSFv2
# Drop static library
<transform file path=.*\.a$ -> drop>

# Remove idle
# Remove idle and things that depend on it
<transform file link path=usr/bin(/.*)?/idle -> drop >
<transform path=usr/lib/python$(PYTHONVER)/idlelib -> drop>
<transform path=usr/lib/python$(PYTHONVER)/turtledemo -> drop>

# Move binaries from usr/bin to private bin
<transform file link \
Expand All @@ -27,8 +28,11 @@ license LICENSE license=PSFv2
# Remove test files
<transform path=usr/lib/python$(PYTHONVER)/test -> drop>

# Prevent pkgdepend from reporting an error
<transform file path=. -> set pkg.depend.bypass-generate .*>
# Prevent pkgdepend from attempting to resolve __main__ dependencies in
# tracing/profiling modules as it will fail.
<transform file \
path=usr/lib/python$(PYTHONVER)/(platform|cProfile|pdb|profile|trace)\.py$ \
-> set pkg.depend.bypass-generate .*>

# Move libpython3.so and replace with a symlink that can be mediated. The
# mediator is applied below
Expand Down
Loading