-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (33 loc) · 1.09 KB
/
setup.py
File metadata and controls
43 lines (33 loc) · 1.09 KB
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
35
36
37
38
39
40
41
42
43
from setuptools import setup, Extension # type: ignore
# read the contents of README
from os import path
import os
library_dirs = []
include_dirs = []
if os.getenv("CUSTOM_INCLUDE", None) is not None:
include_dirs += [os.getenv("CUSTOM_INCLUDE")]
if os.getenv("CUSTOM_LIBRARIES", None) is not None:
library_dirs += [os.getenv("CUSTOM_LIBRARIES")]
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
sqlite_uuid_ext = Extension(
"sqlite_uuid_ext",
sources=["uuid.c"],
library_dirs=library_dirs,
include_dirs=include_dirs,
)
setup(
name="sqlite-uuid",
version="0.9.1",
author="Ricardo Ander-Egg Aguilar",
author_email="rsubacc@gmail.com",
description="Loadable uuid extension for sqlite",
py_modules=["sqlite_uuid"],
ext_modules=[sqlite_uuid_ext],
url="https://github.com/litements/sqlite_uuid",
long_description=long_description,
long_description_content_type="text/markdown",
setup_requires=["wheel"],
python_requires=">=3.6",
)