How to make a portable Pyramid application -
i'm starting pyramid application on osx deployed on ubuntu. application need packages such boto , pymongo. need make application easy deploy on ubuntu?
just follow of tutorials pyramid provides using scaffolds either on osx , on ubuntu. show how pyramid application requirements managed. abstracted defining requirements in setup.py or requirement.txt example.
really, need start productive pyramid here
after finishing application may distribute source distribution/archive (*.tar.gz)
install application on ubuntu pip
, pass path local source archive. need install package development mode
either using pip
or setuptools
. below find --editable
option pip:
$ pip install --help usage: pip install [options] <requirement specifier> ... pip install [options] -r <requirements file> ... pip install [options] [-e] <vcs project url> ... pip install [options] [-e] <local project path> ... pip install [options] <archive url/path> ... description: install packages from: - pypi (and other indexes) using requirement specifiers. - vcs project urls. - local project directories. - local or remote source archives. pip supports installing "requirements files", provide easy way specify whole environment installed. install options: -e, --editable <path/url> install project in editable mode (i.e. setuptools "develop mode") local project path or vcs url.
i recommend use virtualenv
isolate work on platform.
Comments
Post a Comment