File: setup.py

package info (click to toggle)
python-pyglm 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 470 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
from setuptools import Extension, setup

from codecs import open

from os import path

here = path.abspath(path.dirname(__file__))

with open(path.join(here, "VERSION")) as file_:
    VERSION = file_.read().strip()

setup(
    ext_modules=[
        Extension(
            name="pyglm.glm",
            sources=["PyGLM_lib/PyGLM.cpp"],
            include_dirs=["PyGLM_lib/glm/"], 
            extra_compile_args=['-std=c++11', f'-DVERSION={VERSION}']
        ),
    ]
)