-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove wrapper script #11
Changes from 2 commits
c1ad13b
0869a65
6a8764e
34564f3
3336cbb
2562b2f
1d475f7
9dea820
1a20b7d
ceac1e1
f00d2db
be02b37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,8 @@ make -j 4 prefix=${PREFIX} MARCH=core2 sysconfigdir=${PREFIX}/etc NO_GIT=1 \ | |
TAGGED_RELEASE_BANNER="conda-forge-julia release" \ | ||
install | ||
|
||
mv "$PREFIX/bin/julia" "$PREFIX/bin/julia_" | ||
cp "$RECIPE_DIR/julia-wrapper.sh" "$PREFIX/bin/julia" | ||
chmod +x "$PREFIX/bin/julia" | ||
# Configure juliarc to use conda environment | ||
cp -f "${RECIPE_DIR}/juliarc.jl" "${PREFIX}/etc/julia/juliarc.jl" | ||
|
||
# Populate initial package directory | ||
julia -e "Pkg.init(); Pkg.__init__()" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We may need to drop xref: conda/conda-build#2360 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added PR ( dfornika#2 ) to drop this. Should fix the build issue. |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
JULIA_PREFIX = abspath(joinpath(Base.source_path(), "..", "..", "..")) | ||
|
||
if !("JULIA_PKGDIR" in keys(ENV)) | ||
ENV["JULIA_PKGDIR"] = joinpath(JULIA_PREFIX, "share", "julia", "site") | ||
Pkg.init() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this probably shouldn't be done on every startup, only if it hasn't been initialized yet There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the preferred way to check if the package repository has been initialized? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was thinking about that. It seems to only take a toll the first time (as it is initializing everything from scratch). What sort of penalties would we be taking on for subsequent calls? Initially we tried to run this once during the build, but there was a Could add a OTOH we could just never initialize FWIW borrowed this strategy from SO answer. Related to this, is it necessary to call |
||
Pkg.__init__() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's go ahead and drop this and the line above it (i.e. |
||
pop!(Base.LOAD_CACHE_PATH) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to change this line to |
||
end | ||
|
||
if !("JULIA_HISTORY" in keys(ENV)) | ||
ENV["JULIA_HISTORY"] = joinpath(JULIA_PREFIX, ".julia_history") | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I know I added this and it just imitates the wrapper script that we are replacing, but I don't think it is a good idea. If there is a multiuser TL;DR We should remove these 3 lines. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that applies to users' packages too doesn't it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is a totally different view of package management from the one There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should add that one can create There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. won't that force them to reinstall julia? packages are user data, not part of the language, and shouldn't be forced to be installed in the same place There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, what won't?
Ok. Should we be using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. conda won't cache julia packages if they're placed as extra content inside a different installed package (the julia language) most julia users would expect packages to be shared between different methods of installing the same minor version of julia. if conda starts managing julia packages (I'd advise against this until after the julia package manager has been rewritten) then you could add them to the LOAD_PATH without involving julia's package manager at all. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Right, but the plan would be to package Julia packages as
This will be possible as we add
Ok noted. I think this discussion has diverged quite a bit from the original PR, which is my fault. We should move this discussion about how to manage Julia packages within the context of conda into a new issue so that we can discuss this further. Would hate to have this discussion buried in outdated comment of an unrelated diff. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both ways - a non-conda install of julia should be able to see packages added by running Pkg.add within a conda-installed julia. It might not see Julia packages added via conda install, but I don't think you should go there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have open issue ( #14 ) to discuss how best to manage Julia packages with |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ source: | |
|
||
build: | ||
skip: True # [osx or win] | ||
number: 0 | ||
number: 1 | ||
features: | ||
- blas_{{ variant }} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should append, not replace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like an empty file with a comment about how we can add stuff to it. Why not just replace it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it isn't empty on all platforms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. So what sort of stuff ends up there then?