-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial changes to support Python 3.10
* Correct CI / unit tests to work with python 3.10 This also corrects the version of `black` used in the commit hook to work with Python 3.10. The version of pytest needs to be at least 6.2.5 in order to work with Python 3.10. As a result of this change, we need to correct one test with its use of `ExceptiionInfo` objects. Unfortunately, the "usage" message created by the `argparse` module changed to use "options:" instead of "optional arguments:". We ensure that only for the two legacy tests that use a python command the output emitted by older versions of Python3 look like Python 3.10 and later. * Stop using deprecated setuptools method of install The new way to install our Python3 interfaces is: /usr/bin/python3 -m pip install --prefix=${dir} -e . See https://docs.python.org/3.6/installing/index.html#installing-index. The new interface allows for the `agent/Makefile` and `server/Makefile` to create the python CLI interfaces on environments running Python 3.10 and later. Why do we use `/usr/bin/python3`? If you invoke pip inside a virtualenv to install a package, it automatically uninstalls the previous one from where it was installed, and installs it again in the `--prefix` path. That is wrong on so many levels. So, to work around this terrible behavior we have to invoke the non-virtualenv `/usr/bin/python3` so that the installation works without touching the virtualenv.
- Loading branch information
Showing
12 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
addFilter("setup-not-quiet") | ||
addFilter("invalid-url Source0") | ||
addFilter("macro-in-comment") |