pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.51k stars 3.02k forks source link

Files included relatively in `requirements.in` file gets converted to absolute paths #13055

Closed rosen-dash closed 3 days ago

rosen-dash commented 3 days ago

Description

With the latest release (24.3.1), pip-compile produces requirements.txt file with absolute paths to all the incudeded requirements.in files. This makes it difficult to reuse across different users and different machines.

With 24.2

backoff==2.2.1
    # via -r requirements.in

With 24.3.1

backoff==2.2.1
    # via -r /Users/rosen/Personal/sample/requirements.in

Expected behavior

It should retain the relative paths only to make the generated files reusable.

pip version

24.3.1

Python version

3.12.4

OS

MacOS 15.0.1

How to Reproduce

Output

No response

Code of Conduct

notatallshaw commented 3 days ago

You need to report this to the pip-tools project, which pip-compile belongs to: https://github.com/jazzband/pip-tools/issues

While pip-tools uses pip, pip does not support pip-tools.

rosen-dash commented 1 day ago

You need to report this to the pip-tools project, which pip-compile belongs to: https://github.com/jazzband/pip-tools/issues

While pip-tools uses pip, pip does not support pip-tools.

Created an issue in pip-tool - https://github.com/jazzband/pip-tools/issues/2131