Skip to content

Harmonize Windows Scripts directory with POSIX bin directory layout #2404

@pombredanne

Description

@pombredanne

What's the problem this feature will solve?
Automation is harder because a virtualenv has a different directory structure on Windows (Scripts subdir) vs. POSIX (bin subdir).
I reckon this is a long established but IMHO weird convention to have things working differently on Windows. This issue is to challenge this status quo.

I reckon that this has been discussed in #1418 (comment) and python/cpython#18083

Using Scripts vs. bin means that any automation code needs to behave differently for Windows making code more complex or duplicated.

It could be at least experimented here in virtualenv.

Describe the solution you'd like

I would like to either make the Scripts go away ;) or at least have virtualenv always create a symlink (aka. junction) to bin on Windows.
This is likely to be totally harmless to any existing scripts and documentation.
This is what I do for instance here https://github.com/nexB/scancode-toolkit/blob/267518b892870ccf4c2f298f889c35097b6c4c56/configure.bat#L171

Any other alternative solution to the same effect would work too.

The benefit would be that documentation and scripts here and everywhere that must reference Windows (Scripts subdir) and POSIX (bin subdir) as in "Scripts/activate" "bin/activate" could be simplified to a single common syntax.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions