Skip to content

Commit

Permalink
python313: Use automatic dependency generation
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Dec 18, 2024
1 parent 3ca198e commit 77c35c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
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

0 comments on commit 77c35c7

Please sign in to comment.