Skip to content

Commit a29d552

Browse files
committed
moved most of the process to the first install script
1 parent fb2569b commit a29d552

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

hooks/post_gen_project.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22
## This post project generation script only runs if pipenv is on the machine
33
command -v pipenv >/dev/null 2>&1 || { echo >&2 "pipenv not found. Aborting startup script."; exit 1; }
44

5-
## Main installs typical to a project
6-
pipenv install --python $(pyenv version-name) ipython ipykernel pandas matplotlib notebook jupyterlab altair jupytext jupyterlab_templates
7-
8-
## Add the first install script to the Pipfile and rmarkdown export script
9-
echo -e "\n[scripts]\nfirst_install = \"python .first_install.py\"\nexport_rmarkdown = \"Rscript .export_rmarkdown.R\"" >> Pipfile
10-
115
## Run first_install script
126
#### This is meant to be run when people first clone the project.
137
#### Running it here to add jupyter data directory env variable, to set the RETICULATE_PYTHON r env
148
###### variable, to set up the jupyter lab template directory/enable its server,
159
###### and to set up the git solution for changing cwd in an analysis file.
16-
pipenv run first_install
10+
python ./.first_install.py

0 commit comments

Comments
 (0)