Skip to content

Commit

Permalink
python/python-pip: remove pycache/.pyc files
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Dec 24, 2024
1 parent ac59b5f commit b6481a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python-pip/run
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ DESCRIPTION="Easily download, build, install, upgrade, and uninstall Python pack

package() {
pip install . --no-dependencies --ignore-installed --prefix=/usr --root="$ROOT"
find "$ROOT" -type d -name "__pycache__" -exec rm -rf {} +
find "$ROOT" -type f -name "*.pyc" -exec rm -f {} +
}
2 changes: 2 additions & 0 deletions python/run
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ build() {
package() {
make DESTDIR="$ROOT" install || exit 1
ln -s "python3" "$ROOT/usr/bin/python"
find "$ROOT" -type f -name "*.pyc" -delete
find "$ROOT" -type d -name "__pycache__" -exec rm -rf {} +
}

0 comments on commit b6481a9

Please sign in to comment.