2013-10-26 19:59:26 +00:00
|
|
|
#!/usr/bin/env python
|
2015-01-24 13:23:14 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2015-11-01 16:01:18 +00:00
|
|
|
import sys
|
2021-02-17 04:15:29 +00:00
|
|
|
from os import path
|
2016-06-05 14:50:29 +00:00
|
|
|
|
2021-01-09 17:00:18 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
2021-02-17 04:15:29 +00:00
|
|
|
src_dir = path.abspath(path.dirname(__file__))
|
2020-11-16 20:05:11 +00:00
|
|
|
if sys.argv[1].lower().strip() == 'make': # exec Makefile commands
|
2019-01-21 00:01:17 +00:00
|
|
|
import pymake
|
2021-02-17 04:15:29 +00:00
|
|
|
fpath = path.join(src_dir, 'Makefile')
|
2019-01-21 00:01:17 +00:00
|
|
|
pymake.main(['-f', fpath] + sys.argv[2:])
|
2019-01-19 23:38:47 +00:00
|
|
|
# Stop to avoid setup.py raising non-standard command error
|
2015-11-01 16:01:18 +00:00
|
|
|
sys.exit(0)
|
|
|
|
|
2020-12-25 00:17:59 +00:00
|
|
|
setup(use_scm_version=True)
|