Skip to content

Instantly share code, notes, and snippets.

View hstock's full-sized avatar

Hannah Stock hstock

  • Aachen, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hstock on github.
  • I am hansto (https://keybase.io/hansto) on keybase.
  • I have a public key whose fingerprint is 73AC 0CF3 FB41 1E5C 82C6 D169 6C39 9156 943D 13B7

To claim this, I am signing this object:

@hstock
hstock / package_data.py
Created August 17, 2015 10:32
helper for recursively adding package data to python setup.py
#!/usr/bin/env python3
from os import path as osp
from fnmatch import fnmatch
import os
def package_data_with_recursive_dirs(package_data_spec):
"""converts modified package_data dict to a classic package_data dict
Where normal package_data entries can only specify globs, the