Skip to content

How about checking Python version rather than the executable path? #182

Closed
@tkf

Description

@tkf

Currently, pyjulia tries to use separate cache if (1) the path of Python interpreters are different or (2) if the current interpreter is statically linked:

use_separate_cache = exe_differs or determine_if_statically_linked()

But according to @stevengj, all that matter is the major part of the Python version number #172 (comment). Then isn't it better to just compare the major version number (which is stored in PyCall/deps/deps.jl)? This would alleviate the issue #173 (difficulty of private cache support in Julia >= 0.7) since this makes Python 3 distributed by some Linux distros (but sadly not Ubuntu) usable with the same PyCall cache. For example, this would make pyjulia usable with Julia >= 0.7 in python Docker image.

If this is the right way to go, I can do the fix (which would be very straightforward, I think).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions