Issue #123 new

egg_info.writers entrypoint and package_dir interaction

Ronald Oussoren
created an issue

The attached archive contains a minimal distribution with a setup.py file that contains an "egg_info.writers" entry-point. This entry-point is supposed to be called when the egg_info command fills the egg-info directory, but that isn't always happening.

The setup call looks like this:

setup( name='dummy', version='1.0', packages = ["demo1"], #package_dir = {'': 'Lib'}, entry_points = { "egg_info.writers": [ "header1.h = main:write_header" ] }, )

When the package_dir line is commented out the egg_info.writers entry point is called, when the package_dir line is not commented out the entry point is not called.

Comments (3)

  1. Ronald Oussoren reporter

    Sorry about the munged setup call in the issue text, the version in the attached project should be clearer.

    Things get slightly better when I add "import sys;sys.path.append('Lib')" to the start of the file, but that won't play nice w.r.t. use_2to3 support (if I understand how that works correctly). I do have to run the egg_info command twice to get the result I want, which means this is almost certainly not a correct workaround.

  2. Anonymous
  3. Log in to comment