Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Sep 25, 2020
1 parent 089bd74 commit 7006f6c
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[pyjulia_src_julia]
git-tree-sha1 = "8654eeff06dfbf1d593f2551a0f4807a011d2d27"

[[pyjulia_src_julia.download]]
url = "https://github.com/JuliaPy/pyjulia/archive/822d1e3ea7e90d37691724e1bb471dc143a1ca0a.tar.gz"
sha256 = "b4ebc1945d3a76414c6a6f2c178ff9adda7e142745fd6875793687dd4bafd4ae"
9 changes: 8 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
authors = ["Takafumi Arakaki <aka.tkf@gmail.com> and contributors"]
name = "PyPreferences"
uuid = "cc9521c6-0242-4dda-8d66-c47a9d9eec02"
authors = ["Takafumi Arakaki <aka.tkf@gmail.com> and contributors"]
version = "0.1.0"

[compat]
julia = "1"

[deps]
CompilePreferences = "21216c6a-2e73-6563-6e65-726566657250"
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
VersionParsing = "81def892-9a0e-5fdd-b105-ffc91e053289"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

Expand Down
31 changes: 29 additions & 2 deletions src/PyPreferences.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
module PyPreferences
baremodule PyPreferences

# Write your package code here.
function use_system end
function use_conda end
# function use_jll end
function use_inprocess end

# API to be used from PyCall
function assert_configured end
function instruction_message end

# function diagnose end
function status end

module Implementations
include("core.jl")
end

let prefs = Implementations.setup_non_failing()
global const python = prefs.python
global const inprocess = prefs.inprocess
global const conda = prefs.conda
global const python_fullpath = prefs.python_fullpath
global const libpython = prefs.libpython
global const python_version = prefs.python_version
global const PYTHONHOME = prefs.PYTHONHOME
end

const pyprogramname = python_fullpath
const pyversion_build = python_version

end # baremodule PyPreferences
Loading

0 comments on commit 7006f6c

Please sign in to comment.