├── .gitignore ├── ubuntu ├── 1204 │ ├── python27 │ │ ├── kivy_venv_stable.sh │ │ ├── buildozer_only.sh │ │ ├── kivy_sysprep.sh │ │ └── kivy_novenv.sh │ └── python33 │ │ ├── kivy_venv_stable.sh │ │ └── kivy_sysprep.sh ├── 1310 │ └── python27 │ │ └── buildozer_only.sh └── 1404 │ ├── python27 │ ├── kivy_venv_stable.sh │ ├── buildozer_only.sh │ ├── kivy_sysprep.sh │ └── kivy_all.sh │ └── python34 │ ├── kivy_venv_stable.sh │ ├── kivy_sysprep.sh │ └── kivy_all.sh └── README /.gitignore: -------------------------------------------------------------------------------- 1 | venv 2 | pygame 3 | -------------------------------------------------------------------------------- /ubuntu/1204/python27/kivy_venv_stable.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Create a vitualenv 3 | rm -rf venv 4 | virtualenv -p python2.7 --system-site-packages venv 5 | 6 | # Install stable version of Kivy into the virtualenv 7 | venv/bin/pip install kivy 8 | 9 | # Install development version of plyer into the virtualenv 10 | venv/bin/pip install git+https://github.com/kivy/plyer.git@master 11 | 12 | # Install a couple of dependencies for KivyCatalog 13 | venv/bin/pip install -U pygments docutils 14 | 15 | -------------------------------------------------------------------------------- /ubuntu/1204/python33/kivy_venv_stable.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Create a vitualenv 3 | rm -rf venv 4 | virtualenv -p python3.3 --system-site-packages venv 5 | 6 | # Install stable version of Kivy into the virtualenv 7 | venv/bin/pip install kivy 8 | 9 | # Install development version of plyer into the virtualenv 10 | venv/bin/pip install git+https://github.com/kivy/plyer.git@master 11 | 12 | # Install a couple of dependencies for KivyCatalog 13 | venv/bin/pip install -U pygments docutils 14 | 15 | -------------------------------------------------------------------------------- /ubuntu/1404/python27/kivy_venv_stable.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Create a vitualenv 3 | rm -rf venv 4 | virtualenv -p python2.7 --system-site-packages venv 5 | 6 | # Install stable version of Kivy into the virtualenv 7 | venv/bin/pip install kivy 8 | 9 | # Install development version of plyer into the virtualenv 10 | venv/bin/pip install git+https://github.com/kivy/plyer.git@master 11 | 12 | # Install a couple of dependencies for KivyCatalog 13 | venv/bin/pip install -U pygments docutils 14 | 15 | -------------------------------------------------------------------------------- /ubuntu/1404/python34/kivy_venv_stable.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Create a vitualenv 3 | rm -rf venv 4 | virtualenv -p python3.4 --system-site-packages venv 5 | 6 | # Install stable version of Kivy into the virtualenv 7 | venv/bin/pip install kivy 8 | 9 | # Install development version of plyer into the virtualenv 10 | venv/bin/pip install git+https://github.com/kivy/plyer.git@master 11 | 12 | # Install a couple of dependencies for KivyCatalog 13 | venv/bin/pip install -U pygments docutils 14 | 15 | -------------------------------------------------------------------------------- /ubuntu/1204/python27/buildozer_only.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Install necessary system packages 4 | sudo apt-get install -y build-essential ccache git zlib1g-dev python2.7 python2.7-dev ia32-libs openjdk-7-jdk unzip 5 | 6 | # Bootstrap a current Python environment 7 | sudo apt-get remove --purge -y python-virtualenv python-pip python-setuptools 8 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 9 | rm setuptools*.zip 10 | sudo easy_install-2.7 -U pip 11 | sudo pip2.7 install -U virtualenv 12 | 13 | # Install current version of Cython 14 | sudo apt-get remove --purge -y cython 15 | sudo pip2.7 install cython==0.20.1 16 | 17 | # Install Buildozer from master 18 | sudo pip2.7 install -U git+https://github.com/kivy/buildozer.git@master 19 | -------------------------------------------------------------------------------- /ubuntu/1310/python27/buildozer_only.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Install necessary system packages 4 | sudo dpkg --add-architecture i386 5 | sudo apt-get update 6 | sudo apt-get install -y build-essential ccache git zlib1g-dev python2.7 python2.7-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-7-jdk unzip 7 | 8 | # Bootstrap a current Python environment 9 | sudo apt-get remove --purge -y python-virtualenv python-pip python-setuptools 10 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 11 | rm setuptools*.zip 12 | sudo easy_install-2.7 -U pip 13 | sudo pip2.7 install -U virtualenv 14 | 15 | # Install current version of Cython 16 | sudo apt-get remove --purge -y cython 17 | sudo pip2.7 install -U cython 18 | 19 | # Install Buildozer from master 20 | sudo pip2.7 install -U git+https://github.com/kivy/buildozer.git@master 21 | -------------------------------------------------------------------------------- /ubuntu/1404/python27/buildozer_only.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Install necessary system packages 4 | sudo dpkg --add-architecture i386 5 | sudo apt-get update 6 | sudo apt-get install -y build-essential ccache git zlib1g-dev python2.7 python2.7-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-7-jdk unzip 7 | 8 | # Bootstrap a current Python environment 9 | sudo apt-get remove --purge -y python-virtualenv python-pip python-setuptools 10 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 11 | rm -f setuptools*.zip 12 | sudo easy_install-2.7 -U pip 13 | sudo pip2.7 install -U virtualenv 14 | 15 | # Install current version of Cython 16 | sudo apt-get remove --purge -y cython 17 | sudo pip2.7 install cython==0.20.1 18 | 19 | # Install Buildozer from master 20 | sudo pip2.7 install -U git+https://github.com/kivy/buildozer.git@master 21 | -------------------------------------------------------------------------------- /ubuntu/1404/python34/kivy_sysprep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Install necessary system packages 4 | sudo apt-get install -y build-essential mercurial git python3.4 python3.4-dev libfreetype6-dev libjpeg-dev libav-tools libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev zlib1g-dev unzip 5 | 6 | # Bootstrap a current Python environment 7 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python3.4 8 | rm setuptools*.zip 9 | sudo easy_install-3.4 -U pip 10 | sudo pip3.4 install -U virtualenv 11 | 12 | # Install current version of Cython 13 | sudo apt-get remove --purge -y cython 14 | sudo pip3.4 install cython==0.20.1 15 | 16 | # Install other PyGame dependencies 17 | sudo apt-get remove --purge -y python-numpy 18 | sudo pip3.4 install -U numpy 19 | 20 | # Install PyGame 21 | hg clone https://bitbucket.org/pygame/pygame 22 | cd pygame 23 | python3.4 setup.py build 24 | sudo python3.4 setup.py install 25 | cd .. 26 | sudo rm -rf pygame 27 | 28 | -------------------------------------------------------------------------------- /ubuntu/1204/python27/kivy_sysprep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install necessary system packages 3 | sudo apt-get install -y build-essential mercurial git python2.7 python-dev ffmpeg libfreetype6-dev libjpeg-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev unzip 4 | 5 | # Bootstrap a current Python environment 6 | sudo apt-get remove --purge -y python-virtualenv python-pip python-setuptools 7 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 8 | rm setuptools*.zip 9 | sudo easy_install-2.7 -U pip 10 | sudo pip2.7 install -U virtualenv 11 | 12 | # Install current version of Cython 13 | sudo apt-get remove --purge -y cython 14 | sudo pip2.7 install cython==0.20.1 15 | 16 | # Install other PyGame dependencies 17 | sudo apt-get remove --purge -y python-numpy 18 | sudo pip2.7 install -U numpy 19 | 20 | # Install PyGame 21 | hg clone https://bitbucket.org/pygame/pygame 22 | cd pygame 23 | python2.7 setup.py build 24 | sudo python2.7 setup.py install 25 | cd .. 26 | sudo rm -rf pygame 27 | 28 | -------------------------------------------------------------------------------- /ubuntu/1404/python27/kivy_sysprep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install necessary system packages 3 | sudo apt-get install -y build-essential mercurial git python2.7 python-dev libfreetype6-dev libjpeg-dev libav-tools libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev zlib1g-dev unzip 4 | 5 | # Bootstrap a current Python environment 6 | sudo apt-get remove --purge -y python-virtualenv python-pip python-setuptools 7 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 8 | rm -f setuptools*.zip 9 | sudo easy_install-2.7 -U pip 10 | sudo pip2.7 install -U virtualenv 11 | 12 | # Install current version of Cython 13 | sudo apt-get remove --purge -y cython 14 | sudo pip2.7 install cython==0.20.1 15 | 16 | # Install other PyGame dependencies 17 | sudo apt-get remove --purge -y python-numpy 18 | sudo pip2.7 install -U numpy 19 | 20 | # Install PyGame 21 | hg clone https://bitbucket.org/pygame/pygame 22 | cd pygame 23 | python2.7 setup.py build 24 | sudo python2.7 setup.py install 25 | cd .. 26 | sudo rm -rf pygame 27 | 28 | -------------------------------------------------------------------------------- /ubuntu/1204/python33/kivy_sysprep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Bootstrap Python3.3 3 | sudo apt-get install python-software-properties 4 | sudo add-apt-repository ppa:fkrull/deadsnakes 5 | sudo apt-get update 6 | 7 | # Install necessary system packages 8 | sudo apt-get install -y build-essential mercurial git python3.3 python3.3-dev ffmpeg libfreetype6-dev libjpeg-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev unzip 9 | 10 | # Bootstrap a current Python environment 11 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python3.3 12 | rm setuptools*.zip 13 | sudo easy_install-3.3 -U pip 14 | sudo pip3.3 install -U virtualenv 15 | 16 | # Install current version of Cython 17 | sudo apt-get remove --purge -y cython 18 | sudo pip3.3 install cython==0.20.1 19 | 20 | # Install other PyGame dependencies 21 | sudo apt-get remove --purge -y python-numpy 22 | sudo pip3.3 install -U numpy 23 | 24 | # Install PyGame 25 | hg clone https://bitbucket.org/pygame/pygame 26 | cd pygame 27 | python3.3 setup.py build 28 | sudo python3.3 setup.py install 29 | cd .. 30 | sudo rm -rf pygame 31 | 32 | -------------------------------------------------------------------------------- /ubuntu/1404/python34/kivy_all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Install necessary system packages 4 | sudo apt-get install -y build-essential mercurial git python3.4 python3.4-dev libfreetype6-dev libjpeg-dev libav-tools libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev zlib1g-dev unzip 5 | 6 | # Bootstrap a current Python environment 7 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python3.4 8 | rm setuptools*.zip 9 | sudo easy_install-3.4 -U pip 10 | 11 | # Install current version of Cython 12 | sudo apt-get remove --purge -y cython 13 | sudo pip3.4 install cython==0.20.1 14 | 15 | # Install other PyGame dependencies 16 | sudo apt-get remove --purge -y python-numpy 17 | sudo pip3.4 install -U numpy 18 | 19 | # Install PyGame 20 | hg clone https://bitbucket.org/pygame/pygame 21 | cd pygame 22 | python3.4 setup.py build 23 | sudo python3.4 setup.py install 24 | cd .. 25 | sudo rm -rf pygame 26 | 27 | # Install stable version of Kivy 28 | sudo pip3.4 install -U kivy 29 | 30 | # Install development version of plyer 31 | sudo pip3.4 install git+https://github.com/kivy/plyer.git@master 32 | 33 | # Install a couple of dependencies for KivyCatalog 34 | sudo pip3.4 install -U pygments docutils 35 | 36 | -------------------------------------------------------------------------------- /ubuntu/1404/python27/kivy_all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install necessary system packages 3 | sudo apt-get install -y build-essential mercurial git python2.7 python-dev libfreetype6-dev libjpeg-dev libav-tools libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev zlib1g-dev unzip 4 | 5 | # Bootstrap a current Python environment 6 | sudo apt-get remove --purge -y python-pip python-setuptools 7 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 8 | rm -f setuptools*.zip 9 | sudo easy_install-2.7 -U pip 10 | 11 | # Install current version of Cython 12 | sudo apt-get remove --purge -y cython 13 | sudo pip2.7 install cython==0.20.1 14 | 15 | # Install other PyGame dependencies 16 | sudo apt-get remove --purge -y python-numpy 17 | sudo pip2.7 install -U numpy 18 | 19 | # Install PyGame 20 | hg clone https://bitbucket.org/pygame/pygame 21 | cd pygame 22 | python2.7 setup.py build 23 | sudo python2.7 setup.py install 24 | cd .. 25 | sudo rm -rf pygame 26 | 27 | # Install stable version of Kivy into the virtualenv 28 | sudo pip2.7 install -U kivy 29 | 30 | # Install development version of plyer into the virtualenv 31 | sudo pip2.7 install git+https://github.com/kivy/plyer.git@master 32 | 33 | # Install a couple of dependencies for KivyCatalog 34 | sudo pip2.7 install -U pygments docutils 35 | 36 | -------------------------------------------------------------------------------- /ubuntu/1204/python27/kivy_novenv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install necessary system packages 3 | sudo apt-get install -y build-essential mercurial git python2.7 python-dev ccache ia32-libs ffmpeg libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev unzip openjdk-7-jdk 4 | 5 | # Bootstrap a current Python environment 6 | sudo apt-get remove --purge -y python-virtualenv python-pip python-setuptools 7 | wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python2.7 8 | rm -f setuptools*.zip 9 | sudo easy_install-2.7 -U pip 10 | sudo pip2.7 install -U virtualenv 11 | 12 | # Install current version of Cython 13 | sudo apt-get remove --purge -y cython 14 | sudo pip2.7 install cython==0.20.1 15 | 16 | # Install other PyGame dependencies 17 | sudo apt-get remove --purge -y python-numpy 18 | sudo pip2.7 install -U numpy 19 | 20 | # Install PyGame 21 | sudo apt-get remove --purge -y python-pygame 22 | hg clone https://bitbucket.org/pygame/pygame 23 | cd pygame 24 | python2.7 setup.py build 25 | sudo python2.7 setup.py install 26 | cd .. 27 | sudo rm -rf pygame 28 | 29 | # Install Kivy 30 | sudo apt-get remove --purge -y python-kivy 31 | sudo pip install -U kivy 32 | 33 | # Install Plyer 34 | sudo pip install -U plyer 35 | 36 | # Install Kivy Showcase dependencies 37 | sudo pip install -U pygments docutils 38 | 39 | # Install Buildozer 40 | sudo pip install -U buildozer 41 | 42 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | BRousch's Kivy Installers 2 | 3 | Scripts to simplify the installation of Kivy and Buildozer 4 | 5 | Currently Supports: 6 | * Ubuntu 12.04 7 | * Ubuntu 14.04 8 | 9 | To Install Kivy: 10 | 11 | 1. Find the right subfolder for your distro and Python version. 12 | 2. Run the kivy_sysprep.sh script time. 13 | 3. Go to your project dir (or wherever you want the virtualenv). 14 | 4. Run the kivy_venv_stable.sh script for your distro and Python using a relative or absolute path. 15 | 16 | Example run for kivy_sysprep: 17 | * I'm running Ubuntu 12.04 18 | * kivy-installer is located at ~/kivy-installer 19 | * I want to use Kivy Stable version 20 | * I want to use Python2.7 21 | * `cd ~` 22 | * `~/kivy-installer/ubuntu/1204/python27/kivy_sysprep.sh` 23 | * Now my system is ready to create virtualenvs for Kivy Stable on Python 2.7! 24 | 25 | Example run for venv: 26 | * My project is located at ~/myproj 27 | * `cd ~/myproj` 28 | * `~/kivy-installer/ubuntu/1204/python27/kivy_venv_stable.sh` 29 | * Now I have a virtualenv at ~/myproj/venv which is ready to run Kivy! 30 | 31 | Notes on kivy_sysprep: 32 | * Run this once to prepare your system for Kivy with specified Python version. 33 | * You can run it again later to bring your dependencies back up to date. 34 | * It installs: 35 | * Kivy's and PyGame's system dependencies 36 | * Current Cython and NumPy via system-wide pip 37 | * System-wide PyGame from its Mercurial repository 38 | * On Python 2.7 it also installs OpenJDK 7 so you're ready to create Kivy apps for Android. 39 | 40 | Notes on kivy_venv_stable: 41 | * Run this script to create a Kivy virtualenv for each of your projects. 42 | * This script installs the current stable version of Kivy from PyPI. 43 | * For Python 2.7, it creates a virtualenv with --system-site-packages enabled, and Kivy, Plyer, Pygments, and Docutils 44 | installed. 45 | * For Python 3.3 it creates a virtualenv with --system-site-packages enabled, and Kivy, Plyer, Pygments, and Docutils 46 | installed. 47 | 48 | To Install Buildozer: 49 | 50 | 1. Find the right subfolder for your distro and Python version. 51 | 2. Run the buildozer_only.sh script. 52 | --------------------------------------------------------------------------------