diff options
author | Anthon van der Neut <anthon@mnt.org> | 2015-01-15 09:20:26 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2015-01-15 09:20:26 +0100 |
commit | 731d95c892e3cf1d6cb8c42764eb7bcbe358bd54 (patch) | |
tree | 219473408864ef882dd70701f14e9670d456a54a /setup.py | |
parent | 6a631a7a975d418c6a7afd7e8ecf61d851a8636d (diff) | |
download | ruamel.std.argparse-731d95c892e3cf1d6cb8c42764eb7bcbe358bd54.tar.gz |
- removed remnants of creating __init__.py
- test for py26 failed if element was hashed to last place
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -75,28 +75,6 @@ class MyInstallLib(install_lib.install_lib): "create __init__.py on the fly" def run(self): install_lib.install_lib.run(self) - return - init_txt = dedent('''\y - # coding: utf-8 - # Copyright © 2013-2014 Anthon van der Neut, RUAMEL bvba - "generated __init__.py " - try: - __import__('pkg_resources').declare_namespace(__name__) - except ImportError: - pass - ''') - init_path = full_package_name.split('.')[:-1] - for product_init in [ - os.path.join( - *([self.install_dir] + init_path[:p+1] + ['__init__.py'])) - for p in range(len(init_path)) - ]: - if not os.path.exists(product_init): - raise NotImplementedError - print('creating %s' % product_init) - with open(product_init, "w") as fp: - fp.write(init_txt) - setup = os.path.join(self.install_dir, 'setup.py') def install(self): fpp = full_package_name.split('.') # full package path |