cengal.build_tools.cythonyser_setup_runner.versions.v_0.cythonyser_setup_runner

 1#!/usr/bin/env python
 2# coding=utf-8
 3
 4# Copyright © 2012-2024 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
 5# 
 6# Licensed under the Apache License, Version 2.0 (the "License");
 7# you may not use this file except in compliance with the License.
 8# You may obtain a copy of the License at
 9# 
10#     http://www.apache.org/licenses/LICENSE-2.0
11# 
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18import subprocess
19import os
20import sys
21import shlex
22
23"""
24Module Docstring
25Docstrings: http://www.python.org/dev/peps/pep-0257/
26"""
27
28__author__ = "ButenkoMS <gtalk@butenkoms.space>"
29__copyright__ = "Copyright © 2012-2024 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>"
30__credits__ = ["ButenkoMS <gtalk@butenkoms.space>", ]
31__license__ = "Apache License, Version 2.0"
32__version__ = "4.4.1"
33__maintainer__ = "ButenkoMS <gtalk@butenkoms.space>"
34__email__ = "gtalk@butenkoms.space"
35# __status__ = "Prototype"
36__status__ = "Development"
37# __status__ = "Production"
38
39
40def main(setup_full_file_name):
41    run_parameters = 'build_ext --inplace'
42    # run_parameters = 'build_ext'
43    path_to_interpreter = sys.executable
44    if os.name == 'nt':
45        path_to_interpreter = '"{}"'.format(path_to_interpreter)
46        setup_full_file_name = '"{}"'.format(setup_full_file_name)
47    run_parameters = '{python} {path} {params}'.format(
48        python=path_to_interpreter, path=setup_full_file_name, params=run_parameters)
49
50    call_result = subprocess.call(shlex.split(run_parameters))
def main(setup_full_file_name):
41def main(setup_full_file_name):
42    run_parameters = 'build_ext --inplace'
43    # run_parameters = 'build_ext'
44    path_to_interpreter = sys.executable
45    if os.name == 'nt':
46        path_to_interpreter = '"{}"'.format(path_to_interpreter)
47        setup_full_file_name = '"{}"'.format(setup_full_file_name)
48    run_parameters = '{python} {path} {params}'.format(
49        python=path_to_interpreter, path=setup_full_file_name, params=run_parameters)
50
51    call_result = subprocess.call(shlex.split(run_parameters))