Skip to main content

find_julia

This Python package provides functions for searching the file system for the path to a Julia executable or installing Julia if none is found. It is meant to be used by other Python projects that need to find a Julia installation. It also may be used interactively.

Install

pip install find_julia

Several locations are searched for Julia installations, including the default locations used by jill.py and by juliaup.

Examples

Simplest use

Find julia

In [1]: from find_julia import find

In [2]: find()
Out[2]: '/usr/bin/julia'

Find or install julia

In [1]: from find_julia import find_or_install

In [2]: find_or_install()
Out[2]: '/usr/bin/julia'

Function find

find(version_spec=None, check_exe=False, find_all=False, strict=False, env_var=None, no_dist=True)

Calling find() will use reasonable defaults.

Parameters

  • env_var : The environment variable to check for a julia path. If this variable is set and the exectuable satisfies version_spec, then it will be preferred to all other paths. Default: "JULIA".
  • version_spec : A Julia compatibility version specification as a str or object. The returned executable must satisfy this specification. Default: "^1".
  • strict : If True then prerelease (development) versions will be excluded.
  • check_exe : If True then check that the path is a Julia by querying it for the version. Note that this has already been done for most Julias found when the version was extracted.
  • find_all : If False skip the locations that are slower to search. If no other exectuables are found, the slower locations may be searched anyway. The only slow location is the jill-installed location.
  • no_dist : bool If True exclude julia installed from linux distribution packages. These are usually broken. Default True. This looks in /usr/bin/julia and /usr/sbin/julia.

Function find_or_install

find_or_install(version_spec=None, check_exe=False, find_all=False, strict=False,
                    answer_yes=False, post_question_hook=None,
                    env_var=None, no_dist=True)

Calling find_or_install() will use reasonable defaults.

This function takes all the same parameters as does find as well as the following.

Parameters

  • answer_yes - if True, then ask no questions, assume answers are "yes".
  • post_question_hook - a function to run if and after the consumer is asked whether to install Julia. This can be used to ask and record more questions rather than waiting till after the download. Default: None

Metadata

Release files for find-julia 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for find-julia 0.3.0
File Size Uploaded Provenance Actions
find_julia-0.3.0.tar.gz 10.4 kB Without provenance Details for find_julia-0.3.0.tar.gz

Release files / find_julia-0.3.0.tar.gz

Download URL find_julia-0.3.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
399927a1ab1ed672d30afdff1ed44525a1db38a05eedb2e637a80c319bd24038
BLAKE2b-256 checksum
How to use checksums
997e7af5128d81e90061462e9e4d55b2255c73d70b41047e7b17f61e94f5a8dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Security for find-julia 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page