Comments (7)
Hi @staticfloat!
I want to make mini-formulae out of them and have Homebrew control the downloading of them rather than Julia, so that we don't have to re-download the entire git repo every time we update.
That sounds very good. You do a great job with the Julia formula π
Do you know if this is possible/easy?
The most difficult part is to tell Julia's Makesystem how to use the libuv and nginx etc.
Most common is to give an flag like --with-uv=DIR
to configure (or make), so that Julia uses that one. I don't know what Julia supports here. Is there a ./configure --help
? One could easily install libuv into the prefix of julia in some subfolder, so it does not mess up homebrew when Julia gets linked.
If you need the downloaded tarball, then the openblas formula shows how to do that (I think for a git repo this works, too and points to the temp dir of the checked out sources).
Why can't we tell Julia to use the libuv and nginx from main homebrew? I'd love to support you on that one and I will certainly try merge openblas and openblas64 into one formula (where the 64bit interface are named differently).
What do we need to change in the libuv and nginx formulae to make Julia happy? The homebrew way would really be to make use of those dependencies already there. At some point, I hope, we can get a julia formula in homebrew-science :-)
from homebrew-julia.
For reference, it seems that I will be able to address this with Homebrew/legacy-homebrew#17783
from homebrew-julia.
How much granularity do you need here? Is it all-or-nothing or are there some submodules that you want checked out?
from homebrew-julia.
All or nothing is what I was planning on. I would disable auto-submodules
in Homebrew, then manually patch .gitmodules and call git submodule init
after that.
More granularity would be difficult, I think.
-E
On Feb 13, 2013 12:30 PM, "Jack Nagel" [email protected] wrote:
How much granularity do you need here? Is it all-or-nothing or are there
some submodules that you want copied?β
Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-13516377.
from homebrew-julia.
Okay, good. Yeah, anything more granular is hard to do, the submodule stuff isn't that flexible.
from homebrew-julia.
I merged my patches.
This diff against julia.rb will disable submodules:
diff --git a/julia.rb b/julia.rb
index 3b8de96..81bdf03 100755
--- a/julia.rb
+++ b/julia.rb
@@ -1,5 +1,8 @@
require 'formula'
+class GitNoSubmoduleDownloadStrategy < GitDownloadStrategy
+ def submodules?; false; end
+end
# Avoid Julia downloading these tools ondemand
# We don't have full formulae for them, as julia makes very specific use of these formulae
@@ -14,7 +17,7 @@ class JuliaDSFMT < Formula
class Julia < Formula
homepage 'http://julialang.org'
- head 'https://github.com/JuliaLang/julia.git'
+ head 'https://github.com/JuliaLang/julia.git', :using => GitNoSubmoduleDownloadStrategy
depends_on "readline"
depends_on "pcre"
from homebrew-julia.
@samueljohn upon further thought, I'm not sure that caching submodules is really what I want to do here. Caching submodules wouldn't achieve much as two of the submodules (libuv
and juliadoc
) are rather quick-moving, and furthermore Julia always expects the latest, so downloading it on demand is really what we want. Finally, since brew keeps the old Julia git repo around in-between installs, removing and reinstalling Julia is pretty much the same as just doing a git pull
, a git submodule update
and recompiling. I think I'm going to leave this formula as-is for now, if you think otherwise, comment here!
from homebrew-julia.
Related Issues (20)
- Problem on brew upgrade: curl: (56) SSLRead() return error -9806 HOT 3
- BottleSpecification#sha1 is deprecated HOT 2
- Oh my, zero-point-five! HOT 2
- julia 0.5.0 fails to build on OS X 10.12 HOT 8
- julia-0.5.0 test failure on OS X 10.11.6 HOT 7
- WARNING: Error during initialization of module CHOLMOD: HOT 2
- `brew install --HEAD julia` failing on OSX Sierra (`make: *** [julia-deps] Error 2`) HOT 5
- Pkg.update broken HOT 10
- ld: library not found for -lLLVM HOT 1
- HEAD does not compile anymore HOT 1
- brew link with multiple versions of julia HOT 3
- Unable to install Julia with or without --HEAD HOT 11
- julia quasi-broken after gcc update HOT 44
- Building IJulia and ZMQ on Julia-0.6 HOT 4
- Warning: Calling fails_with :llvm is deprecated! HOT 2
- Building ZMQ on High Sierra HOT 1
- Update issue HOT 2
- Deprecated... things... HOT 2
- How to remove julia completely from my system? HOT 2
- γWarning: Calling a Formula#patches definition is deprecated!γ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-julia.