These are my notes for setting up a virtual environment for Pelican, the static site generator that I use to build my blog.
This document guides you through the processes of setting up a virtual environment, this way you can use the lastest version of Pelican, pulling it fron pypi without worrying about breaking or poluting your system.
- This ensure true portability and reproducible environments.
Fedora
su -c 'dnf install python2-virtualenv.noarch python3-virtualenv.noarch'
su -c 'dnf install python2-pip.noarch python3-pip.noarch'
cd ~/Documents
mkdir virtualenvs
cd virtualenvs
Use the virtualenv-3
or the virtualenv-3.6
command.
virtualenv-3 --no-site-packages pelican
cd pelican
source bin/activate
pip install --upgrade setuptools pip
pip install Markdown typogrify
pip install pelican
pip install --upgrade pelican Markdown typogrify setuptools pip
git clone [email protected]:porfiriopaiz/site.git
make html
make serve
git checkout master
git subtree split --prefix output -b gh-pages
git push -f origin gh-pages:gh-pages
git branch -D gh-pages