mirror of https://github.com/pypa/pip
Add HackedEggInfo test for the the fix for GH-11.
This commit is contained in:
parent
ea109a0bd9
commit
1f84b65bd1
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from setuptools import setup
|
||||
from setuptools.command import egg_info as orig_egg_info
|
||||
|
||||
class egg_info (orig_egg_info.egg_info):
|
||||
def run(self):
|
||||
orig_egg_info.egg_info.run(self)
|
||||
|
||||
|
||||
setup(
|
||||
name = "hackedegginfo",
|
||||
version = '0.0.0',
|
||||
cmdclass = {'egg_info':egg_info },
|
||||
zip_safe = False,
|
||||
)
|
||||
|
|
@ -376,6 +376,16 @@ def test_install_with_pax_header():
|
|||
run_pip('install', 'paxpkg.tar.bz2', cwd=run_from)
|
||||
|
||||
|
||||
def test_install_with_hacked_egg_info():
|
||||
"""
|
||||
test installing a package which defines its own egg_info class
|
||||
"""
|
||||
reset_env()
|
||||
run_from = abspath(join(here, 'packages', 'HackedEggInfo'))
|
||||
result = run_pip('install', '.', cwd=run_from)
|
||||
assert 'Successfully installed hackedegginfo\n' in result.stdout
|
||||
|
||||
|
||||
def test_install_using_install_option_and_editable():
|
||||
"""
|
||||
Test installing a tool using -e and --install-option
|
||||
|
|
Loading…
Reference in New Issue