Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Use python2 (if available) to run cxxtestgen #523

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

mliszcz
Copy link
Collaborator

@mliszcz mliszcz commented Jan 28, 2019

As python 2.x is reaching EOL soon (PEP 373) and some distros already switched to use python 3.x as a default python interpreter, I propose to follow PEP 394 and use python2 command/link instead of python when invoking cxxtestgen.

If python2 is missing, CMake will fall-back to using python (if it's on $PATH).

@mliszcz mliszcz force-pushed the use-python2 branch 2 times, most recently from f78586d to 755cb01 Compare January 29, 2019 10:29
@mliszcz
Copy link
Collaborator Author

mliszcz commented Feb 4, 2019

Hi,

Can I get some comments on this? The current solution (hardcoded python) prevents development on distros like Arch, Fedora, etc. ...

@bourtemb
Copy link
Member

bourtemb commented Feb 4, 2019

Did you try to replace cxxtestgen.py with a more recent version from https://github.com/CxxTest/cxxtest github repository?
Is there a version which would be compatible with python2 & python3?
Note that there might be more than 1 file to update if we want to use a more recent version of cxxtest... I didn't investigate.
Your solution has the advantage to be simple and can buy us some time before upgrading cxxtest.

@t-b
Copy link
Collaborator

t-b commented Feb 4, 2019

I think the PR is first step in the right direction i.e. a pure enhancement.

@bourtemb bourtemb merged commit 7da1c12 into tango-controls:tango-9-lts Feb 5, 2019
Ingvord pushed a commit that referenced this pull request Mar 29, 2019
* Added CHANGELOG.md
This file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
List changes since cppTango 9.2.5.
Changes with potential compatibility issues are documented as suggested in #509 and are in bold.

* Add links to issues and PRs in CHANGELOG.md

* Update CHANGELOG.md
with references to #508,#516,#518,#520,#521,#522,#523,#529,#531,#533,#537

* Update CHANGELOG.md with #517

* Update CHANGELOG.md. Add link for issue 395

* Moved 2 items from Fixed to Changed section
Added a warning about the event subscription change sleep reduction

* First version of the release notes for cppTango 9.3.3
Rename RELEASE_NOTES in RELEASE_NOTES.md.
The previous RELEASE_NOTES content has been moved to CHANGELOG.md file.

* Added reference to cppTango#539
Preparation for cppTango 9.3.3 release

* Update CHANGELOG and RELEASE_NOTES with #541 and #542

* Reword one item in CHANGELOG.md and RELEASE_NOTES.md

* Update CHANGELOG.md with #544, #546 and #549

* Add reference to #532
Add 9.3.3 release date

* Add 9.3.3 release date
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants