-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
julia-0.5.2 #3503
julia-0.5.2 #3503
Changes from all commits
9d1ec7c
ee165c0
6e4a9ef
a765a18
329ecf4
0399205
b59d56c
fb78a2f
09ea8b4
79a24de
cd8c0f3
060bf17
056cb20
50c9974
73cbd34
abb9ead
4315d8f
c23dafc
9f461d6
a1e0094
9a16cd9
8d1870b
e50a172
f58ef7c
b42eac4
ea8152b
feab085
4fda532
7f5062a
2e8b807
f967c10
7ad4d18
3f4ada5
1b9c389
461dda3
8a38506
1f5a6e7
bc91f58
62a07eb
0b5087b
6feace4
c92d774
fc2f8d3
22c76f5
9be917f
b87fd4e
9e15f34
747d101
8c6810f
d15efd2
e41adf6
a2b0fbe
79e1f4e
0a95d04
6cb50af
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
export C_INCLUDE_PATH=${PREFIX}/include | ||
export LD_LIBRARY_PATH=${PREFIX}/lib | ||
export LIBRARY_PATH=${PREFIX}/lib | ||
export CMAKE_PREFIX_PATH=${PREFIX} | ||
|
||
make -j 4 prefix=${PREFIX} MARCH=core2 sysconfigdir=${PREFIX}/etc NO_GIT=1 \ | ||
USE_SYSTEM_LIBGIT2=1 USE_LLVM_SHLIB=0 USE_SYSTEM_CURL=1 USE_SYSTEM_MPFR=1 \ | ||
USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_LLVM=0 USE_SYSTEM_BLAS=1 \ | ||
USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_SUITESPARSE=1 \ | ||
LIBBLAS=-lopenblas LIBBLASNAME=libopenblas.so LIBLAPACK=-lopenblas LIBLAPACKNAME=libopenblas.so \ | ||
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" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
JULIA_HOME="$(dirname "${BASH_SOURCE[0]}")" | ||
|
||
# Set JULIA_PKGDIR to $PREFIX/share/julia/site to avoid contaminating | ||
# user's ~/.julia/. This script will modify Pkg.dir() and | ||
# Base.LOAD_CACHE_PATH[1] appropriately. Note that wrapper script is | ||
# used rather than /etc/julia/juliarc.jl because LOAD_CACHE_PATH is | ||
# configured in base/sysimg.jl which is loaded before juliarc.jl. | ||
if [ -z ${JULIA_PKGDIR+x} ] # see: http://stackoverflow.com/a/13864829 | ||
then | ||
JULIA_PKGDIR="$(dirname "$JULIA_HOME")/share/julia/site" | ||
export JULIA_PKGDIR | ||
fi | ||
|
||
# Set JULIA_HISTORY to $PREFIX/.julia_history to avoid saving | ||
# to user's $HOME | ||
if [ -z ${JULIA_HISTORY+x} ] | ||
then | ||
JULIA_HISTORY="$(dirname "$JULIA_HOME")/.julia_history" | ||
export JULIA_HISTORY | ||
fi | ||
|
||
exec "$JULIA_HOME/julia_" "$@" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% set name = "julia" %} | ||
{% set version = "0.5.2" %} | ||
{% set sha256 = "efa3303d63e39bf3ea06e23ef68807cca0095c7e0507bdf26eae1d5dee7868c7" %} | ||
{% set variant = "openblas" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
fn: v{{ version }}.tar.gz | ||
url: https://github.com/JuliaLang/julia/archive/v{{ version }}.tar.gz | ||
sha256: {{ sha256 }} | ||
|
||
build: | ||
skip: True # [osx or win] | ||
number: 0 | ||
features: | ||
- blas_{{ variant }} | ||
|
||
requirements: | ||
build: | ||
- gcc # [linux] | ||
- toolchain | ||
- patchelf | ||
- cmake | ||
- zlib 1.2.8 | ||
- python 2.7.* | ||
- perl 5.20.* | ||
- openblas 0.2.19|0.2.19.* | ||
- blas 1.1 {{ variant }} | ||
- fftw | ||
- gmp 6.1.* | ||
- mpfr 3.1.* | ||
- curl | ||
- libgit2 | ||
- arpack | ||
- suitesparse | ||
|
||
run: | ||
- zlib 1.2.8 | ||
- libgcc # [linux] | ||
- libgit2 | ||
- fftw | ||
- gmp 6.1.* | ||
- mpfr 3.1.* | ||
- openblas 0.2.19|0.2.19.* | ||
- blas 1.1 {{ variant }} | ||
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. You probably need 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. libcurl is also indirect at runtime (for proxies in libgit2 if it's built with that support), though curl or wget is used for downloads at build and test time 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. can keep it for the |
||
- arpack | ||
- suitesparse | ||
- curl | ||
|
||
test: | ||
commands: | ||
- julia -e 'Base.runtests("all"); Base.runtests("pkg libgit2-online")' | ||
requires: | ||
- perl | ||
|
||
about: | ||
home: http://julialang.org/ | ||
license: MIT | ||
license_file: LICENSE.md | ||
summary: A high-performance dynamic programming language for data science | ||
|
||
extra: | ||
recipe-maintainers: | ||
- bgruening | ||
- dfornika | ||
- acaprez |
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.
you should also be able to just replace its contents
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.
Could you clarify? I'm not sure what you're suggesting.
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.
modify LOAD_CACHE_PATH in a juliarc instead of doing this non portable wrapper script business
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.
Though juliarc is going to be in the user's home directory, right? It would be better if we had a way to set this without touching the user's home directory. Is there one?
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.
there's a juliarc in the installation as well
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.
So I missed this before and maybe you did as well @tkelman, but the comment here says that "
LOAD_CACHE_PATH
is configured in base/sysimg.jl which is loaded before juliarc.jl." Hence its manipulation in the wrapper script. Knowing very little about Julia's loading procedure I can't comment further, but it sounds like changes toLOAD_CACHE_PATH
injuliarc
will simply be ignored. Thoughts on this?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.
the sysimg.jl value is just a default, it's a mutable array so can be modified anywhere
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.
Right. That much is clear. What is less clear is what has already been done based on
LOAD_CACHE_PATH
at this point. Are there any docs on Julia's loading procedure?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.
FWIW opened issue ( conda-forge/julia-feedstock#10 ) to get rid of the wrapper script and @dfornika's PR ( conda-forge/julia-feedstock#11 ) is an attempt to solve this. Maybe you can advise on how best to proceed.