Skip to content

Commit

Permalink
Merge pull request #104 from wickman/wickman/103
Browse files Browse the repository at this point in the history
Fix packager not including setup.py files in source distributions
  • Loading branch information
wickman committed May 28, 2015
2 parents 80fb842 + f1310db commit 366a2a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions pex/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class InstallerBase(object):
SETUP_BOOTSTRAP_MODULE = "sys.path.insert(0, %(path)r); import %(module)s"
SETUP_BOOTSTRAP_FOOTER = """
__file__ = 'setup.py'
sys.argv[0] = 'setup.py'
exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
"""

Expand Down
3 changes: 0 additions & 3 deletions pex/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ def write_zipfile(directory, dest, reverse=False):
package_data={'my_package': ['package_data/*.dat']},
)
'''),
'MANIFEST.in': dedent('''
include setup.py
'''),
'scripts/hello_world': '#!/usr/bin/env python\nprint("hello world!")\n',
'scripts/shell_script': '#!/usr/bin/env bash\necho hello world\n',
'my_package/__init__.py': 0,
Expand Down

0 comments on commit 366a2a3

Please sign in to comment.