Skip to content

Instantly share code, notes, and snippets.

View aniongithub's full-sized avatar

Ani aniongithub

View GitHub Profile
@aniongithub
aniongithub / setup.py
Last active October 1, 2021 05:10 — forked from jpmens/MANIFEST.in
Including git version in setup.py files. (Requires at least _one_ tag in the repo) Normally used to make things like, "python setup.py sdist" give you a predictable name for files. Normally used with tags on the repo like 0.1 or 2.3.0. This fork will tag all non-git working folders as a "dev" version.
from setuptools import setup
# from https://gist.github.com/dcreager/300803 with "-dirty" support added
from version import get_git_version
# From http://bugs.python.org/issue15881
try:
import multiprocessing
except ImportError:
pass