From 4290b57a1bfe17fcfc3b08363f90a5b1cc2b6482 Mon Sep 17 00:00:00 2001 From: leongross Date: Fri, 24 Jun 2022 15:39:22 +0200 Subject: [PATCH 1/2] Add python2 virtual environemnt to README.md --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index efbecf2..ea2e01f 100755 --- a/README.md +++ b/README.md @@ -37,12 +37,28 @@ This repository contains multiple implementations of the pixelflut protocol. Pul ### `/pixelflut` (python server) -Server written in Python, based on gevent and pygame. Easy to hack with, but a bit slow. In fact, it was slowed down on purpose to be more fair and encourage smart drawing techniques instead of image spamming. Perfect for small groups. +Server written in Python2, based on gevent and pygame. Easy to hack with, but a bit slow. In fact, it was slowed down on purpose to be more fair and encourage smart drawing techniques instead of image spamming. Perfect for small groups. cd pixelflut sudo apt-get install python-gevent python-pygame python-cairo mkdir save - python pixelflut.py brain.py + python2 pixelflut.py brain.py + +Alternatively use `pip2` and a virtual environemnt for cleaner dependecy management. + + cd pixelflut + + pip2 install virtualenv + python2 -m virtualenv venv + + source venv/bin/activate + pip2 install -r requirements.txt + mkdir save + python2 pixelflut.py brain.py + +After exiting, deactivate the virtual environment + + deactivate #### `/pixelwar` (java server) From 2f2107888a7f2e8d1f799e1fc9a2fb0e44e8d261 Mon Sep 17 00:00:00 2001 From: leongross Date: Fri, 24 Jun 2022 15:39:56 +0200 Subject: [PATCH 2/2] Add requirements.txt for python2 virtual environment --- pixelflut/requirements.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pixelflut/requirements.txt diff --git a/pixelflut/requirements.txt b/pixelflut/requirements.txt new file mode 100644 index 0000000..a4fce80 --- /dev/null +++ b/pixelflut/requirements.txt @@ -0,0 +1,6 @@ +gevent==21.12.0 +greenlet==1.1.2 +pycairo==1.18.2 +pygame==2.0.3 +zope.event==4.5.0 +zope.interface==5.4.0