Mercurial > kallithea
comparison scripts/dbmigrate-test @ 8986:0a9ddb8cd8c1 stable
setup: avoid setuptools 67 - it can't handle celery's broken pytz dependency
With setuptools 67 or later, launching Kallithea fails as:
$ gearbox serve -c my.ini --reload
15:56:54,111 ERROR [gearbox] Expected closing RIGHT_PARENTHESIS
pytz (>dev)
~^
The `packaging` vendored in setuptools cannot handle the broken syntax
`Requires-Dist: pytz (>dev)` in
venv/lib/python3.11/site-packages/celery-5.0.5.dist-info/METADATA .
The old celery version currently used by Kallithea is wrong, and setuptools has
moved on after a reasonable grace period. We thus have to work around and avoid
latest setuptools.
See https://github.com/pypa/setuptools/issues/3889 .
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 13 Apr 2023 13:54:24 +0200 |
parents | 3158cf0dafb7 |
children |
comparison
equal
deleted
inserted
replaced
8985:84b4fc9db016 | 8986:0a9ddb8cd8c1 |
---|---|
92 HG archive --rev "$rev" "$prefix" | 92 HG archive --rev "$rev" "$prefix" |
93 | 93 |
94 ( | 94 ( |
95 cd "$prefix" | 95 cd "$prefix" |
96 . "$prefix-env/bin/activate" | 96 . "$prefix-env/bin/activate" |
97 pip install --quiet --upgrade pip setuptools mercurial $EXTRA | 97 pip install --quiet --upgrade pip "setuptools<67" mercurial $EXTRA |
98 pip install --quiet -e . | 98 pip install --quiet -e . |
99 ) | 99 ) |
100 } | 100 } |
101 | 101 |
102 install_kallithea "$temp/from" "$from_rev_hash" | 102 install_kallithea "$temp/from" "$from_rev_hash" |