forked from FermiQC/GaussianBasis.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use libcint_jll instead of deps/build.jl solution (FermiQC#3)
- Loading branch information
1 parent
a1ab517
commit cc80c72
Showing
3 changed files
with
7 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,3 @@ | ||
# Fetch Libcint | ||
|
||
try | ||
@info "Fetching libcint library" | ||
if Sys.ARCH == :x86_64 | ||
run(`git clone https://github.com/sunqm/qcint.git`) | ||
mv("qcint", "libcint") | ||
else | ||
run(`git clone https://github.com/sunqm/libcint.git`) | ||
end | ||
mkdir(joinpath(@__DIR__, "libcint/build")) | ||
cd(joinpath(@__DIR__, "libcint/build")) | ||
catch | ||
@error("Failed to clone libcint") | ||
throw(SystemError) | ||
end | ||
|
||
try | ||
# Compile Libcint | ||
@info "Building Libcint" | ||
|
||
@info " => Running CMAKE..." | ||
run(`cmake ..`) | ||
@info " => Running MAKE..." | ||
run(`make`) | ||
catch | ||
rm(joinpath(@__DIR__, "libcint"), recursive=true, force=true) | ||
@error("Libcint compilation failed!!") | ||
throw(SystemError) | ||
end | ||
|
||
# Fetch binary | ||
@info " => Cleaning up..." | ||
if Sys.islinux() | ||
run(`cp libcint.so ../../`) | ||
elseif Sys.isapple() | ||
run(`cp libcint.dylib ../../`) | ||
else | ||
@error "Could not resolve OS" | ||
end | ||
|
||
# Untar basis set library and Clean up | ||
# Untar basis set library | ||
cd(@__DIR__) | ||
run(`tar -zxf lib.gz`) | ||
rm(joinpath(@__DIR__, "libcint"), recursive=true, force=true) | ||
run(`tar -zxf lib.gz`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters