Python/Flask deployment without pip -


i've deployed flask applications simple fabric script put source on target machine, used pip install dependencies, fired uwsgi necessary settings , off went.

however, have new issue new security settings in our environments have blocked access outside network trying use pip install our dependencies fails. looked using python setup.py sdist create package thinking build down on developer machine upload .tar.gz deployment machine , install still trying contact pip dependencies.

is there way compiled package dependencies , use deploy server? there sdist setting can use?

assuming build machine binary-compatible target, or don't need compiled extensions, can use pip wheel compile project , dependencies wheels, copy files server, , pip install wheel directory only.

# on build machine cd myproject pip wheel --wheel-dir wheelbase . scp -r wheelbase me@target.example.org  # on target machine pip install --no-index --find-links=wheelbase myproject 

you should able copy odd sdist --find-links directory well, in case pip install sdist, if have recompile on server.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -