Commit 41f3b038 authored by Andrew Gibiansky's avatar Andrew Gibiansky

installing our own versions of pip dependencies now

parent bcc3a699
...@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment