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

v0.3

parent caf155a0
No related branches found
No related tags found
No related merge requests found
from .build import build from .build import build
from .multibuild import Multibuild from .multibuild import Multibuild
__version__ = '0.2' __version__ = '0.3'
\ No newline at end of file
...@@ -6,6 +6,7 @@ from setuptools import Extension ...@@ -6,6 +6,7 @@ from setuptools import Extension
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
SEP_LEN = len(os.path.sep)
class Multibuild: class Multibuild:
def __init__(self, extension_name: str, files: tp.Iterable[str]): def __init__(self, extension_name: str, files: tp.Iterable[str]):
...@@ -152,10 +153,10 @@ def bootstrap_cython_submodules(): ...@@ -152,10 +153,10 @@ def bootstrap_cython_submodules():
data = '' data = ''
if 'bootstrap_cython_submodules' not in data: if 'bootstrap_cython_submodules' not in data:
data = data + """ data = ("""
from %s.__bootstrap__ import bootstrap_cython_submodules from %s.__bootstrap__ import bootstrap_cython_submodules
bootstrap_cython_submodules() bootstrap_cython_submodules()
""" % (self.extension_name, ) """ % (self.extension_name, )) + data
with open(os.path.join(self.bootstrap_directory, '__init__.py'), 'w') as f_out: with open(os.path.join(self.bootstrap_directory, '__init__.py'), 'w') as f_out:
f_out.write(data) f_out.write(data)
......
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