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 52ee3f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 0 additions & 8 deletions build/python313/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ BUILD_DEPENDS_IPS="
ooce/developer/autoconf-archive
"
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
"
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 52ee3f6

Please sign in to comment.