forked from microsoft/Accera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
20 lines (15 loc) · 780 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
####################################################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
####################################################################################################
from setuptools import setup
import os
import pathlib
import sys
SCRIPT_DIR = pathlib.Path(os.path.abspath(__file__)).parent
sys.path.append(str(SCRIPT_DIR / "accera/python/setuputils"))
import setuputils as utils
setup(ext_modules=[utils.CMakeExtension("_lang_python")],
cmdclass=dict(build_ext=utils.CMakeBuild),
use_scm_version=utils.scm_version("accera/python/accera/_version.py"))