Skip to content
Snippets Groups Projects
Commit c0fe3cf8 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

v1.1.2: bugfix release

parent 8a9fc6c8
No related branches found
No related tags found
No related merge requests found
import os import os
import collections import collections
import typing as tp import typing as tp
import logging
import pkg_resources import pkg_resources
from satella.files import split from satella.files import split
from mako.template import Template from mako.template import Template
from setuptools import Extension from setuptools import Extension
logger = logging.getLogger(__name__)
CdefSection = collections.namedtuple('CdefSection', ('h_file_name', 'module_name')) CdefSection = collections.namedtuple('CdefSection', ('h_file_name', 'module_name'))
GetDefinitionSection = collections.namedtuple('GetDefinitionSection', ( GetDefinitionSection = collections.namedtuple('GetDefinitionSection', (
'module_name', 'pyinit_name' 'module_name', 'pyinit_name'
...@@ -119,8 +123,10 @@ class Multibuild: ...@@ -119,8 +123,10 @@ class Multibuild:
self.alter_init() self.alter_init()
def for_cythonize(self, *args, **kwargs): def for_cythonize(self, *args, **kwargs):
for_cythonize = [*self.files, os.path.join(self.bootstrap_directory, '__bootstrap__.pyx')]
logger.warning('For cythonize: %s', for_cythonize)
return Extension(self.extension_name+".__bootstrap__", return Extension(self.extension_name+".__bootstrap__",
self.files + [os.path.join(self.bootstrap_directory, for_cythonize,
'__bootstrap__.pyx')],
*args, *args,
**kwargs) **kwargs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment