Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetch builders #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions pkglib/pkglib/setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
get_script_header, sys_executable,
is_64bit, resource_string)

from pkglib import egg_cache
from pkglib import egg_cache, CONFIG
from .base import CommandMixin


Expand Down Expand Up @@ -45,15 +45,15 @@ def get_script_args(dist, executable=sys_executable, wininst=False):
hdr = new_header
else:
hdr = header
yield (name+ext, hdr+script_text, 't', [name+x for x in old])
yield (name + ext, hdr + script_text, 't', [name + x for x in old])
yield (
name+'.exe', resource_string('setuptools', launcher),
name + '.exe', resource_string('setuptools', launcher),
'b' # write in binary mode
)
else:
# On other platforms, we assume the right thing to do is to
# just write the stub with no extension.
yield (name, header+script_text)
yield (name, header + script_text)


def monkeypatch(module, attr):
Expand Down Expand Up @@ -81,6 +81,7 @@ def __init__(self, dist, **kw):

def initialize_options(self):
_easy_install.initialize_options(self)
self.index_url = self.maybe_add_simple_index(CONFIG.pypi_url)

def finalize_options(self):
_easy_install.finalize_options(self)
Expand Down