File: setup.py

package info (click to toggle)
py3c 1.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 320 kB
  • sloc: ansic: 863; python: 395; makefile: 206
file content (26 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
import glob

from setuptools import setup


def find_headers():
    path = os.path.join(os.path.dirname(__file__), 'include')
    for root, dirs, files in os.walk(path):
        for filename in files:
            if filename.endswith('.h'):
                yield os.path.join(root, filename)

with open('README.rst') as f:
    long_description = f.read()

setup(
    name='py3c',
    version='1.1',
    description='Python compatibility headers',
    long_description=long_description,
    author='Petr Viktorin',
    author_email='encukou@gmail.com',
    url='http://py3c.readthedocs.io/',
    headers=list(find_headers()),
    platforms='any')