-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (24 loc) · 685 Bytes
/
setup.py
File metadata and controls
29 lines (24 loc) · 685 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
from setuptools import setup, Extension
import shutil
import os
def copy_and_overwrite(from_path, to_path):
if os.path.exists(to_path):
shutil.rmtree(to_path)
shutil.copytree(from_path, to_path)
MAJOR = 1
MINOR = 0
BUGFIX = 0
VERSION = '{}.{}.{}'.format(MAJOR, MINOR, BUGFIX)
def copy_lib_files():
WINDOWS_DST_PATH = "C:\\PythonLib\\v{}".format(VERSION)
copy_and_overwrite("./libs/windows", WINDOWS_DST_PATH)
copy_lib_files()
setup(
# Information
name = "library_lib",
version = VERSION,
author = "Barak David",
license = "MIT",
keywords = "Example of cross-platform library wrapper.",
packages = ['library_lib', 'library_lib.wrapper']
)