Skip to content

Simple setup for breakage of setup develop with binary files specified as script on windows

Notifications You must be signed in to change notification settings

davidovich/develop_breakage_on_windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

develop_breakage_on_windows

Simple setup for breakage of the python setup develop with binary files specified as script on windows.

Intent

This python package demonstrates a failure of the develop command on windows when scripts are inary files.

The binary program included here is a simple hello world output to stdout.

When the develop command copies the scripts specified files, they are copied with the bare open() command that translates line endings on windows. This clobbers the destination.

For more info see https://bitbucket.org/pypa/setuptools/issue/210/on-windows-binary-files-specified-as

Proof

Run the following commands at the root of this sample:

python setup.py develop
python -c "from develop_break import module; module.main()"

Notice the crash.

Use https://bitbucket.org/pypa/setuptools/pull-request/60/fix-regression-in-issue-218/diff

And rerun the above commands. The crash should not occur.

About

Simple setup for breakage of setup develop with binary files specified as script on windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages