-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (27 loc) · 798 Bytes
/
setup.py
File metadata and controls
34 lines (27 loc) · 798 Bytes
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
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from setuptools import Command, setup
from distutils.core import Extension
class cleanup(Command):
"""Get rid of unneeded files after running setup.py."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system("rm -rfv ./build ./dist ./*.pyc ./*.tgz ./*.egg-info")
setup(
name='pokemon_lookup',
description='Extending Python with a Pokemon lookup function.',
ext_modules=[Extension('pokemon_lookup', ['extend.c'])],
version='1.0',
author='K Kollmann',
author_email='code∆k.kollmann·moe',
url='https://github.com/kerstin/extending_python',
license='',
cmdclass={
'clean': cleanup
}
)