ZMQ.jl icon indicating copy to clipboard operation
ZMQ.jl copied to clipboard

problem to move julia repo, because of `.julia\v0.3\ZMQ\deps\deps.jl`

Open stonebig opened this issue 11 years ago • 5 comments

Hello,

I'm trying to build a movable Ijulia+ipython, and I fall on a ZMQ module "absolute path" problem. In the file .julia\v0.3\ZMQ\deps\deps.jl, there is a line 12 generated with the full 'original' directory of ZMQ: @checked_lib zmq "D:\\result_tests\\WinPython-32bit-3.4.2.5_build3\\settings\\.julia\\v0.3\\ZMQ\\deps\\usr\\lib\\libzmq.DLL"

==> is this absolute path really necessary ?

stonebig avatar Feb 08 '15 21:02 stonebig

@Keno, should this be a bindeps issue?

stevengj avatar Feb 09 '15 05:02 stevengj

I have some side effects, after fixing manually this https://groups.google.com/forum/#!topic/julia-users/aEj2V1vdbdQ

stonebig avatar Feb 09 '15 07:02 stonebig

ok: side-effect was because I forgot to copy the hidden .git files. The only issue to get a movable Julia/IJulia seems this non-"relative" path in .julia\v0.3\ZMQ\deps\deps.jl. current state of file D:\WinPython\basedir34\buildFlavorJulia\winpython-3.4.2\settings\.julia\v0.3\ZMQ\deps:

`# Load dependencies
@checked_lib zmq "D:\\WinPython\\basedir34\\buildFlavorJulia\\winpython-3.4.2\\settings\\.julia\\v0.3\\ZMQ\\deps\\usr\\lib\\libzmq.DLL"

whish:

@checked_lib zmq ".\\usr\\lib\\libzmq.DLL"

stonebig avatar Feb 11 '15 10:02 stonebig

What is curious is it is apparently the only Julia module (that I have) using an absolute path ==> shouldn't it be easy to fix ?

stonebig avatar Feb 11 '15 11:02 stonebig

at least on writing, it looks possible to replace a "." per Base.source_path()\\ in https://github.com/JuliaLang/BinDeps.jl/blob/master/src/dependencies.jl around line 832 (I don't know where it is read after)

stonebig avatar Feb 11 '15 11:02 stonebig