[CentralOH] Python packaging for PyPI

Jay Shaffstall jshaffstall at gmail.com
Wed Dec 7 09:43:48 EST 2016


Hi all,

I've been writing a physics sandbox (basically a simplified wrapper around
Pymunk) for my Intro to Computer Science classes to use for one of their
labs.  I'd initially been writing it just for my own use, but have realized
it's something that other educators might also be interested in using.

My plan is to put it on Github and package it so it can be installed using
pip.  I have a couple of dependencies, though, that don't easily install
using standard pip.

I wanted to get feedback from those of you who've done this before on the
best way of handling those dependencies.

I'll list the dependencies below.

Thanks,
Jay

Py2d

This can be installed via pip, but the PyPI version doesn't support Python
3, which my sandbox uses.  The github version does support Python 3.

If I put the github repo in requirements.txt, can that be installed on
machines without git?

Pygame

Which version of pygame needs installed depends on the version of Python
they have (both version and 32/64-bit).  I've always had to hunt up a
specific version to match what I have installed at the time.

Is there a best practice for having pygame automatically installed as a
dependency if it's not already there?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20161207/413211a8/attachment.html>


More information about the CentralOH mailing list