Skip to content

presence of setup.py breaks entrypoint generation #2324

@wichert

Description

@wichert
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: macOS 10.15.4
  • Poetry version: 1.0.5

Issue

I had a dummy setup.py (based on this post):

#!/usr/bin/env python

import setuptools

if __name__ == "__main__":
    setuptools.setup()

When that file is present two things happen when doing poetry install:

  • egg info is now created under UNKNOWN.egg-info
  • entry_points.txt is no longer generated

Interestingly enough entry_points.txt is still present in a generated wheel.

Steps to reproduce

poetry new testpoint
cd testpoint
printf '\n[tool.poetry.plugins.test]\nmain = "foo"' >> pyproject.toml
echo 'import setuptools; setuptools.setup()' > setup.py
poetry install

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions