Skip to content

Commit

Permalink
Fetch all standart modules
Browse files Browse the repository at this point in the history
commit_hash:8586ebe84c0111d35e656c2f5b9ada155096cafb
  • Loading branch information
nechda committed Oct 24, 2024
1 parent 085b9ca commit eacbfe8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ynd/bin/frozen-python3/unwrap/ix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__darwin_'
{% elif mingw32 %}
export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__win32_'
{% endif %}
{{super()}}
{% endblock %}

{% block extra_modules %}
sre_parse
sre_constants
# Collect all modules
export PYTHONPLATLIBDIR=${TARGET_PYTHONHOME}/lib/python3.12
cur=$(pwd)
cd $PYTHONPLATLIBDIR
find . -type f -name '*.py' | cut -b3- | sed -E 's|\.py$||g' | sed -E 's|/|\.|g' | grep -v '\-' >> $cur/ext_modules
cd $cur
cat modules >> ext_modules
cat ext_modules | sort | uniq > modules

{{super()}}
{% endblock %}

{% block step_unpack %}
Expand Down

0 comments on commit eacbfe8

Please sign in to comment.