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

Compiling setup.py in a nested folder produces setup.txt #1312

Closed
atugushev opened this issue Jan 31, 2021 · 3 comments · Fixed by #1324
Closed

Compiling setup.py in a nested folder produces setup.txt #1312

atugushev opened this issue Jan 31, 2021 · 3 comments · Fixed by #1324
Labels
bug Something is not working good first issue A good item for first time contributors to work on setuptools Related to compiling requirements with `setuptools` build backend

Comments

@atugushev
Copy link
Member

atugushev commented Jan 31, 2021

Environment Versions

  1. OS Type: macOS
  2. Python version: Python 3.8.0
  3. pip version: pip 20.2.2
  4. pip-tools version: pip-compile, version 5.5.0

Steps to replicate

  1. Create a folder:
$ mkdir -p foo/bar
  1. Create setup.py:
$ cat << EOF > foo/bar/setup.py
from setuptools import setup
setup(name="bar", version="0.1", install_requires=["six"])
EOF
  1. Run pip-compile:
$ pip-compile foo/bar/setup.py
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile foo/bar/setup.py
#
six==1.15.0
    # via bar (foo/bar/setup.py)

Expected result

$ ls foo/bar
setup.py  requirements.txt

Actual result

$ ls foo/bar
setup.py  setup.txt
@atugushev atugushev added bug Something is not working setuptools Related to compiling requirements with `setuptools` build backend labels Jan 31, 2021
@atugushev atugushev changed the title Compile setup.py in a sub-folder produces setup.txt Compiling setup.py in a nested folder produces setup.txt Feb 1, 2021
@atugushev atugushev added the good first issue A good item for first time contributors to work on label Feb 9, 2021
@peymanslh
Copy link
Member

Hi @atugushev
Can I work on this issue?

@atugushev
Copy link
Member Author

@peymanslh sure! Feel free to.

@AndydeCleyre
Copy link
Contributor

This also happens to be fixed by the current state of #1329, though the annotations specify (setup.py) rather than (foo/bar/setup.py), since the files are adjacent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working good first issue A good item for first time contributors to work on setuptools Related to compiling requirements with `setuptools` build backend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants