diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-11-29 01:39:01 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-11-29 01:39:01 +0000 |
| commit | f4537b6303dc71941803bb488ce042ce3552282e (patch) | |
| tree | 822ab7d4d141fdfc3c45d4458fda00c66d7cb962 /dev-python/vpython/files/vpython-7.6.2-fix-python310-detection.patch | |
| parent | 3c7c34a53a51513bf1b34ebab7408a0be681d867 (diff) | |
| download | baldeagleos-repo-f4537b6303dc71941803bb488ce042ce3552282e.tar.gz baldeagleos-repo-f4537b6303dc71941803bb488ce042ce3552282e.tar.xz baldeagleos-repo-f4537b6303dc71941803bb488ce042ce3552282e.zip | |
Adding metadata
Diffstat (limited to 'dev-python/vpython/files/vpython-7.6.2-fix-python310-detection.patch')
| -rw-r--r-- | dev-python/vpython/files/vpython-7.6.2-fix-python310-detection.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/vpython/files/vpython-7.6.2-fix-python310-detection.patch b/dev-python/vpython/files/vpython-7.6.2-fix-python310-detection.patch new file mode 100644 index 000000000000..5cf5b2fe000a --- /dev/null +++ b/dev-python/vpython/files/vpython-7.6.2-fix-python310-detection.patch @@ -0,0 +1,56 @@ +From 426eeae74eb67934bf7ddcffc07677d93a7ea191 Mon Sep 17 00:00:00 2001 +From: Mike <Axe319@gmail.com> +Date: Fri, 8 Oct 2021 17:22:52 -0400 +Subject: [PATCH 1/2] Fixed version check to encompass Python 3.10 + +--- + vpython/__init__.py | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/vpython/__init__.py b/vpython/__init__.py +index 3fc6ce5..c09f697 100644 +--- a/vpython/__init__.py ++++ b/vpython/__init__.py +@@ -10,14 +10,14 @@ + # both of those. + + from ._notebook_helpers import _isnotebook, __is_spyder +-import platform +-__p = platform.python_version() ++import sys ++__v = sys.version_info + +-# Delete platform now that we are done with it +-del platform ++# Delete sys now that we are done with it ++del sys + +-__ispython3 = (__p[0] == '3') +-__require_notebook = (not __ispython3) or (__p[2] < '5') # Python 2.7 or 3.4 require Jupyter notebook ++__ispython3 = (__v.major == 3) ++__require_notebook = (not __ispython3) or (__v.minor < 5) # Python 2.7 or 3.4 require Jupyter notebook + + if __require_notebook and (not _isnotebook): + s = "The non-notebook version of vpython requires Python 3.5 or later." + +From 405062dcca5a9a8656b99afb52cd13ce885f8bd1 Mon Sep 17 00:00:00 2001 +From: Mike <Axe319@gmail.com> +Date: Mon, 11 Oct 2021 18:16:50 -0400 +Subject: [PATCH 2/2] Added username to contributors.md + +--- + CONTRIBUTORS.md | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md +index 1f627bd..d608966 100644 +--- a/CONTRIBUTORS.md ++++ b/CONTRIBUTORS.md +@@ -30,6 +30,7 @@ We are certain the list is incomplete; please let one of us know by opening an [ + + Kyle Dunn ([@kdunn926](https://github.com/kdunn926)) + + Brian Su ([@brianbbsu](https://github.com/brianbbsu)) + + [@0dminnimda](https://github.com/0dminnimda) +++ Mike Miller ([@Axe319](https://github.com/axe319)) + + ## Full timeline of vpython development + |
