Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
41f3b038
Commit
41f3b038
authored
Jan 03, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installing our own versions of pip dependencies now
parent
bcc3a699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
9 deletions
+26
-9
IPython.hs
IHaskell/IPython.hs
+26
-9
No files found.
IHaskell/IPython.hs
View file @
41f3b038
...
@@ -199,16 +199,33 @@ installIPython = void . shellyNoDir $ do
...
@@ -199,16 +199,33 @@ installIPython = void . shellyNoDir $ do
buildIPython
buildIPython
-- | Install all Python dependencies.
installPipDependencies
::
Sh
()
installPipDependencies
::
Sh
()
installPipDependencies
=
do
installPipDependencies
=
mapM_
installDependency
[(
"markupsafe"
,
"0.18"
)
-- Install all Python dependencies.
,(
"pyzmq"
,
"14.0.1"
)
pipPath
<-
path
"pip"
,(
"tornado"
,
"3.1.1"
)
prefixOpt
<-
(
"--install-option=--prefix="
++
)
<$>
fpToText
<$>
ipythonDir
,(
"jinja2"
,
"2.7.1"
)]
let
pipDeps
=
[
"pyzmq"
,
"tornado"
,
"jinja2"
]
where
installDep
dep
=
do
installDependency
::
(
Text
,
Text
)
->
Sh
()
putStrLn
$
"Installing dependency: "
++
dep
installDependency
(
dep
,
version
)
=
withTmpDir
$
\
tmpDir
->
do
run_
pipPath
[
"install"
,
prefixOpt
,
dep
]
let
versioned
=
dep
++
"-"
++
version
mapM_
installDep
pipDeps
putStrLn
$
"Installing dependency: "
++
versioned
pipPath
<-
path
"pip"
tarPath
<-
path
"tar"
-- Download the package.
let
downloadOpt
=
"--download="
++
fpToText
tmpDir
run_
pipPath
[
"install"
,
downloadOpt
,
dep
++
"=="
++
version
]
-- Extract it.
run_
tarPath
[
"-xf"
,
versioned
++
".tar.gz"
]
-- Install it.
cd
$
fromText
versioned
prefixOpt
<-
(
"--prefix="
++
)
<$>
fpToText
<$>
ipythonDir
run_
pipPath
[
"install"
,
prefixOpt
]
-- | Once things are checked out into the IPython source directory, build it and install it.
-- | Once things are checked out into the IPython source directory, build it and install it.
buildIPython
::
Sh
()
buildIPython
::
Sh
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment