File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Nimjl
2
2
# Licensed and distributed under MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
3
- version = " 0.7.2 "
3
+ version = " 0.7.3 "
4
4
author = " Regis Caillaud"
5
5
description = " Nim Julia bridge"
6
6
license = " MIT"
Original file line number Diff line number Diff line change 1
1
import std/ os
2
2
import std/ strutils
3
3
4
- const JuliaBinPath = gorge (" julia -E Sys.BINDIR" ).replace (" \" " , " " )
4
+ proc JuliaBinPath * () : string {.compileTime .} =
5
+ gorge (" julia -E Sys.BINDIR" ).replace (" \" " , " " )
5
6
6
7
# JuliaPath should be parent folder of Julia-bindir
7
8
# This is resolved AT COMPILE TIME. Therefore, using the environment of the machine that compile.
8
9
# If you want to ship a binary, you need to install in a fixed path and pass this path using -d:JuliaPath="/path/to/Julia"
9
- const JuliaPath * {.strdefine .} = if not existsEnv (" JULIA_PATH" ): JuliaBinPath .parentDir ().normalizedPath ().absolutePath () else : getEnv (" JULIA_PATH" )
10
- static :
11
- echo JuliaPath
10
+ const JuliaPath * {.strdefine .} = if not existsEnv (" JULIA_PATH" ): JuliaBinPath ().parentDir ().normalizedPath () else : getEnv (" JULIA_PATH" )
11
+
12
12
const JuliaIncludesPath * = JuliaPath / " include" / " julia"
13
13
const JuliaHeader * = " julia.h"
14
14
const JuliaLibPath * = JuliaPath / " lib"
You can’t perform that action at this time.
0 commit comments