Commit Graph

23 Commits (master)

Author SHA1 Message Date
MichaIng 196b926da3 Assure that setuptools <45 is installed
In some circumstances pip pulls setuptools 45.0.0, which is not compatible with Python 2. To assure the correct version is installed, add the "--no-setuptools" flag to virtualenv and install the correct setuptools version manually afterwards.

Workaround for: https://github.com/mozilla-services/syncserver/issues/239

Additionally this removes the obsolete pip upgrade. "make build" only runs once and is blocked afterwards by a flag file. Even when removing this flag file manually, "virtualenv" always reinstalls pip, which includes an upgrade to the latest version. A latest supported pip version is hence assured on every build.

Signed-off-by: MichaIng <micha@dietpi.com>
4 years ago
MichaIng 515ee7332e
Remove deprecated "--no-site-packages" flag
This is default since virtualenv 1.9 from 2013-03-07.
It has been deprecated with 1.11 from 2014-01-02.
It has been removed with 20.0.0 from 2020-02-10.

This change hence drops support virtualenv <1.9
but enables support for v20.0.0 and up.

Reference: https://github.com/mozilla-services/syncserver/issues/239#issuecomment-693430113

Signed-off-by: MichaIng <micha@dietpi.com>
4 years ago
fengshaun 2b8d19e3b4
Pick up python2.7 before generic python symlink 4 years ago
fengshaun dcbc0722a4
Pick up python2.7 before generic python symlink 4 years ago
fengshaun 947f56607d add support for freebsd python2.7 4 years ago
Ben Boeckel a4b4eda6d0 makefile: use the system Python's virtualenv
`virtualenv` on Fedora is now a Python3 tool. Without installing
Python3, there is no `virtualenv` tool. Instead, just rely on the
package being installed.
6 years ago
Niko Wenselowski dc27164a26 Improve support for Python 3.
This fixes the messages shown in #97 but does not mean there is proper Python 3 support in all used libraries.
6 years ago
Ryan Kelly 8c4d9a75fa
fix(build): Don't update `distribute` during venv setup.
This seems to fail on some systems, possible because they have
an incompatible setuptools/distribute installed at the system level.
6 years ago
Ryan Kelly d03e4ece56 Upgrade pip when installing the virtualenv 6 years ago
Ryan Kelly 72d618f3ee Add support for deploying via dockerflow pipeline. (#90) r=vladikoff 7 years ago
Ryan Kelly 4a9cebf056 Use gunicorn rather than pserve 9 years ago
Ryan Kelly 043fa9e651 Further fixes for umemcached build errors. 10 years ago
Ryan Kelly 1f32e71350 Add customs CFLAGS to build, to workaround issue with umemcache 10 years ago
Ryan Kelly 20462f23b4 Let `make build` recover better from partial virtualenv installs 10 years ago
Ryan Kelly 069804f077 Update to use new simplified mozsvc.metrics infrastructure 10 years ago
Ryan Kelly 98f5d04522 Hack around OSX python build issues 10 years ago
Ryan Kelly 4e6bef8086 Fix needless rebuilding by touching ./local at end of build 10 years ago
Ryan Kelly 4361780705 Make $(ENV) target depend on the requirements file.
Fixes #19
10 years ago
Dan Callahan 55cc6e1f3b Don't run tests by default when calling make
Making it explicit via `make test` makes more sense to me.
10 years ago
Dan Callahan 536d3cab85 Subjectively clean up Makefile
I think the following Makefile might be a little more maintainable, grokkable,
and robust.
10 years ago
Ryan Kelly df899b9801 Use `python2` by default, to guard against py3 incompatibility 10 years ago
Ryan Kelly 7603ab1856 Add a simple static node assignment backend, for easier deployment. 10 years ago
Ryan Kelly d0d47fae3b Initial commit; refactored from server-full2 codebase 10 years ago