Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installers: Simpler version check via subprocess #431

Merged
merged 1 commit into from Aug 18, 2017

Conversation

marcogario
Copy link
Contributor

Separated and simplified from PR #407.

Main changes:

  • Renamed check_module_version.py into check_version.py; fixed its internal structure and changed return value from "ERROR" to "NOT INSTALLED". If there is an error, the script will exit with a non-zero status, and we can print this information for debugging
  • Fixed installation for cvc4, btor and picosat. Since we are not using os.system anymore, we need to perform each command separately and we cannot rely on the shell patterns.
  • Removed some left-overs functions from previous attempts

@marcogario marcogario added this to the 0.7.5 milestone Aug 12, 2017
v = yicespy.__dict__['__YICES_VERSION']
m = yicespy.__dict__['__YICES_VERSION_MAJOR']
p = yicespy.__dict__['__YICES_VERSION_PATCHLEVEL']
version = "%d.%d.%d" % (v, m, p)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have an error if the module is not among the recognized ones

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in f0e15a4

@@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

"archives", "lingeling-*.tar.gz"))[0]
boolector_archive = glob.glob(os.path.join(self.extract_path,
"archives", "boolector-*.tar.gz"))[0]
SolverInstaller.run("tar xf %s" % lingeling_archive,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you did so much that you can now use SolverInstaller.untar, and SolverInstaller.move ...

@mikand mikand assigned marcogario and unassigned mikand Aug 14, 2017
@mikand mikand merged commit 9f6eb3b into master Aug 18, 2017
@mikand mikand deleted the installer_version_checker branch August 18, 2017 06:54
nbailluet pushed a commit to nbailluet/pysmt that referenced this pull request Mar 14, 2024
Installers: Simpler version check via subprocess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants