chore: always build egg (#1654)

Prevent a possible mismatch between new setup.py and old requires.txt in previous egg build.
This commit is contained in:
Jonas L 2022-03-01 13:40:34 +01:00 committed by GitHub
parent 9ff8491778
commit e371dccb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -21,14 +21,9 @@ command -v sed > /dev/null || error "sed command not found!"
for setup_path in */setup.py; do
path="$(dirname "$setup_path")"
egg_path="$(echo "$path"/*.egg-info)"
# Only build egg if absent
if [[ ! -d "$egg_path" ]]; then
python3 "$setup_path" egg_info > /dev/null 2>&1 || true
fi
# Refresh egg_path with bash expansion
# Build egg
python3 "$setup_path" egg_info > /dev/null 2>&1 || true
egg_path="$(echo "$path"/*.egg-info)"
# Remove entire extra section from require file