From 347ad65363a435400879c6da2228d8de18b854f8 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 8 Feb 2021 19:57:55 -0300 Subject: [PATCH] Support for only kicad-nightly installed. --- CHANGELOG.md | 6 +++++- debian/changelog | 8 +++++++- kibot/kiplot.py | 3 +++ tests/utils/context.py | 3 +++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e6ea48b..d9225004 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.0-3] - 2021-02-08 +### Fixed +- Support for only kicad-nightly installed. + ## [0.9.0-2] - 2021-02-08 ### Changed -- Accept debian-nightly as dependency, not just kicad. +- Accept kicad-nightly as dependency, not just kicad. ## [0.9.0] - 2021-01-04 ### Added diff --git a/debian/changelog b/debian/changelog index a1ac21c3..e12fb9cf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,12 @@ +kibot (0.9.0-3) stable; urgency=medium + + * Support for only kicad-nightly installed. + + -- Salvador E. Tropea Mon, 08 Feb 2021 19:56:48 -0300 + kibot (0.9.0-2) stable; urgency=medium - * Accept debian-nightly as dependency, not just kicad. + * Accept kicad-nightly as dependency, not just kicad. -- Salvador E. Tropea Mon, 08 Feb 2021 19:42:44 -0300 diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 03207581..cfdb0531 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -36,6 +36,9 @@ script_versions = {} if os.environ.get('KIAUS_USE_NIGHTLY'): # Path to the Python module sys_path.insert(0, '/usr/lib/kicad-nightly/lib/python3/dist-packages') +else: + # Add it as low priority + sys_path.append('/usr/lib/kicad-nightly/lib/python3/dist-packages') try: import pcbnew except ImportError: diff --git a/tests/utils/context.py b/tests/utils/context.py index 648d508f..bc371283 100644 --- a/tests/utils/context.py +++ b/tests/utils/context.py @@ -26,6 +26,9 @@ ng_ver = os.environ.get('KIAUS_USE_NIGHTLY') if ng_ver: # Path to the Python module sys.path.insert(0, '/usr/lib/kicad-nightly/lib/python3/dist-packages') +else: + # Add it as low priority + sys_path.append('/usr/lib/kicad-nightly/lib/python3/dist-packages') import pcbnew m = re.search(r'(\d+)\.(\d+)\.(\d+)', pcbnew.GetBuildVersion()) logging.debug(pcbnew.GetBuildVersion())