Skip to main content

A gravity simulator written to taste modern Python packaging practices

Project description

gravely, a gravity simulator

`gravely` is a gravity simulator,
written to taste modern Python packaging practices.

It uses [Cython]( compiled extensions,
depends on [Numpy]( and [h5py](,
compiles into a single binary with [PyInstaller]( and
aims to support both Linux and Windows.
Not exactly a walk in the park.

`gravely` is distributed under the terms of the MIT License;
see [LICENSE.txt](LICENSE.txt).

Pyinstaller binary:

./gravely test
./gravely run
./gravely animate

Installed Python package:

python3 -m gravely test
python3 -m gravely run
python3 -m gravely animate

**First of all, try using a precompiled binary made with PyInstaller.**
If that doesn't suit you, you should report that
and proceed to installing the Python package.

The base requirements to begin with are a working C compiler,
`Python>=3.4` with development headers,
`setuptools>=20`, `numpy>=1.8.2` and `pip>=8`.
These should be enough to start installation of `gravely`
from a source archive or a precompiled wheel (`.whl`) file:

python3 -m pip install gravely-*.zip
python3 -m pip install gravely-*.whl

Other packages may or may not install automatically with pip/setuptools magic.

`gravely` also depends on `cython>=0.21` (build) and `h5py>=2.2` (run-time).
Rendering nice video animations requires `matplotlib>=1.4` and `ffmpeg`.
Testing requires `nose>=1.0`.

Try to satisfy as many of these
before attempting to build and install `gravely`.

### Linux, Debian-based
apt-get install gcc python3 python3-dev python3-setuptools python3-pip \
cython3 python3-numpy python3-matplotlib python3-nose ffmpeg

### Install necessary upgrades with pip
pip3 install 'pip>=8'
python3 -m pip install \
'cython>=0.21' 'setuptools>=20' 'matplotlib>=1.4' 'nose>=1.0'
python3 -m pip install -r requirements.txt

### Windows
Good luck.

Currently only Windows 10 and Python 3.5 are supported.

Some say that it's better to use specialized Python distributions like
[Anaconda]( or
[Enthought Canopy](
to get the prerequisities straight.

As for vanilla Python... Visual Studio with Python support
and several pip invocations could be a good start:

python -m pip install cython numpy matplotlib nose
python -m pip install

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gravely, version 0.0.2.dev17
Filename, size File type Python version Upload date Hashes
Filename, size gravely-0.0.2-cp34-cp34m-manylinux1_x86_64.whl (356.2 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size gravely-0.0.2-cp35-cp35m-manylinux1_x86_64.whl (344.1 kB) File type Wheel Python version cp35 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page