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