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
f7a5ba84
Commit
f7a5ba84
authored
Jan 12, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use bash and now run ipython in the venv
parent
8334a607
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
5 deletions
+23
-5
IHaskell.cabal
IHaskell.cabal
+1
-0
ipython.sh
installation/ipython.sh
+1
-1
run.sh
installation/run.sh
+11
-0
update.sh
installation/update.sh
+1
-1
virtualenv.sh
installation/virtualenv.sh
+3
-1
IPython.hs
src/IHaskell/IPython.hs
+6
-2
No files found.
IHaskell.cabal
View file @
f7a5ba84
...
...
@@ -46,6 +46,7 @@ data-files:
installation/ipython.sh
installation/update.sh
installation/virtualenv.sh
installation/run.sh
profile/profile.tar
library
...
...
installation/ipython.sh
View file @
f7a5ba84
#!/bin/sh
#!/bin/
ba
sh
# Which virtualenv to use.
VIRTUALENV
=
$1
...
...
installation/run.sh
0 → 100644
View file @
f7a5ba84
#!/bin/bash
# Which virtualenv to use.
VIRTUALENV
=
$1
shift
# Activate the virtualenv.
source
$VIRTUALENV
/bin/activate
# Run IPython.
ipython
$@
installation/update.sh
View file @
f7a5ba84
#!/bin/sh
#!/bin/
ba
sh
# Which virtualenv to use.
VIRTUALENV
=
$1
...
...
installation/virtualenv.sh
View file @
f7a5ba84
#!/bin/sh
#!/bin/
ba
sh
# Which version of virtualenv to use.
VIRTUALENV
=
virtualenv-1.9
...
...
@@ -7,9 +7,11 @@ VIRTUALENV=virtualenv-1.9
DESTINATION
=
$1
# Download virtualenv.
echo
"Downloading virtualenv."
curl
-O
https://pypi.python.org/packages/source/v/virtualenv/
$VIRTUALENV
.tar.gz
tar
xvfz
$VIRTUALENV
.tar.gz
cd
$VIRTUALENV
# Create a virtualenv.
echo
"Creating a virtualenv."
python virtualenv.py
$DESTINATION
src/IHaskell/IPython.hs
View file @
f7a5ba84
...
...
@@ -52,8 +52,12 @@ ipython :: WhichIPython -- ^ Which IPython to use (user-provided or IHaskell-ins
->
[
Text
]
-- ^ IPython command line arguments.
->
Sh
String
-- ^ IPython output.
ipython
which
suppress
args
=
do
ipythonPath
<-
ipythonExePath
which
runHandles
ipythonPath
args
handles
doNothing
runCmd
<-
liftIO
$
Paths
.
getDataFileName
"installation/run.sh"
venv
<-
fpToText
<$>
ipythonDir
print
venv
print
runCmd
let
cmdArgs
=
[
pack
runCmd
,
venv
]
++
args
runHandles
"bash"
cmdArgs
handles
doNothing
where
handles
=
[
InHandle
Inherit
,
outHandle
suppress
,
errorHandle
suppress
]
outHandle
True
=
OutHandle
CreatePipe
outHandle
False
=
OutHandle
Inherit
...
...
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