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

feature: Improve application discovery and configuration options #5

Merged
merged 8 commits into from Jan 6, 2022

Conversation

ConnorGray
Copy link
Collaborator

This PR fleshes out and polishes the code for discovering Wolfram applications, makes wolfram-app-discovery work better as a cargo build script dependency, and documents the configuration variable (WOLFRAM_APP_DIRECTORY) that can be used to override the default search locations.

…ST_WOLFRAM_LOCATION

* Add wolfram_app_discovery::config module to organize this functionality.
* Using RUST_WOLFRAM_LOCATION will cause a deprecation warning message to
  be printed to stderr.
This is now consistent with the formatting of the other Wolfram crates:
	wolfram-expr
	wolfram-library-link
	wstp
This controls whether or not wolframa-app-discovery will print:

	cargo:rerun-if-env-changed=<VAR>

statements. This is useful when wolfram-app-discovery is used
in a cargo build.rs script (as in e.g. wstp).
…lications

* Add new wolfram_app_discovery::find module to contain this logic
* Replace the WolframApp.installation_directory field with app_directory
* Add WolframApp.embedded_player field, which is used if the current
  app is a Wolfram Engine, which contains an embedded Wolfram Player.app
  on macOS.
* `embedded_player` is Some, forward all WolframApp methods to the embedded
  instance.
@ConnorGray ConnorGray merged commit cbb198e into master Jan 6, 2022
@ConnorGray ConnorGray deleted the feature/improve-search-and-config branch January 6, 2022 20:39
@ConnorGray
Copy link
Collaborator Author

Followup: This PR was missing one file that I forgot to commit, fixed in #6.

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

1 participant