Giter Club home page Giter Club logo

django_test's Introduction

Settingup the Project

TODO: put together all these setups to setup.sh

Install pyenv

git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
exec $SHELL

Install pyenv-virtualenv plugin

git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
exec "$SHELL"

Install latest Python with pyenv

use 3.5.0 in this Project.

pyenv install 3.5.0
pyenv rehash

upgrade pip

pyenv shell 3.5.0
pyenv exec pip install --upgrade pip

Create virtualenv for this project named django

pyenv virtualenv 3.5.0 django

Set the local application-specific Python version to django created above

pyenv local django

Install project-specific Python dependencies from Wheelhouse

pyenv exec pip install -r requirements.txt --use-wheel --no-index --find-links=./requirements/wheelhouse

Save Python modules to Wheelhouse

refer to https://www.qoosky.net/references/263/ http://pelican.aodag.jp/20140502-pip-wheel-speedup.html#

pyenv exec pip freeze > requirements.txt
pyenv exec pip wheel --wheel-dir=./requirements/wheelhouse -r requirements.txt
git add requirements.txt wheelhouse
git commit -m 'update wheelehouse'

About Wheels and Wheelhouse

django_test's People

Contributors

keisatou avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.