-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
28 lines (22 loc) · 795 Bytes
/
setup.py
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
from pathlib import Path
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
class BuildPy(build_py):
def run(self):
super().run()
name = "magic_codec.pth"
input_file = Path("src") / name
output_file = Path(self.build_lib) / name
# install path configuration file
self.copy_file(str(input_file), str(output_file), preserve_mode=0)
setup(
name="magic_codec",
version="0.0.1",
description="Extensible codec that can be used to drastically change the behavior of the Python interpreter.",
author="Tsche",
author_email="[email protected]",
package_dir={'': 'src'},
packages=find_packages(where='src'),
include_package_data=True,
cmdclass={"build_py": BuildPy}
)