From c3919c78af24e7a29653341fe631781ae47fae3d Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 21 Jul 2015 00:52:27 -0400 Subject: [pkg] add empty __init__ on soledad folder otherwise the module cannot be imported (in the pseudo-pkg produced by the sumo tarball) - Releases: 0.9.0 --- setup.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 4ce19c09..33616f5e 100755 --- a/setup.py +++ b/setup.py @@ -274,6 +274,14 @@ class cmd_sdist(versioneer_sdist): # We need to copy the requirements to the specified path # so that the client has a copy to do the startup checks. copy_reqs(base_dir, withsrc=True) + with open(os.path.join(base_dir, + 'src', 'leap', '__init__.py'), + 'w') as nuke_top_init: + nuke_top_init.write('') + with open(os.path.join(base_dir, + 'src', 'leap', 'soledad', '__init__.py'), + 'w') as nuke_soledad_ns: + nuke_soledad_ns.write('') def make_distribution(self): # add our extra files to the list just before building the @@ -301,8 +309,6 @@ class cmd_sdist(versioneer_sdist): self.filelist.extend(all_module_files) freeze_pkg_ver( src_path + "/_version.py", vdict[module], "sumo") - with open('src/leap/__init__.py', 'w') as nuke_top_init: - nuke_top_init.write('') # In addition, we want the tarball/zipfile to have -SUMO in the # name, and the unpacked directory to have -SUMO too. The easiest -- cgit v1.2.3