brp-python-hardlink fails on files that include spaces

Tadej Jane┼ż tadej.janez at
Wed Sep 26 13:34:00 UTC 2012


On Tue, 2012-09-25 at 16:32 -0400, David Malcolm wrote: 
> Almost certainly a bad idea, but FWIW it is possible, using the
> __import__ builtin:
> # mkdir "/usr/lib64/python2.7/site-packages/this module has a space"
> # echo "print('hello world')" > "/usr/lib64/python2.7/site-packages/this
> module has a space/"
> # ls /usr/lib64/python2.7/site-packages/this\ module\ has\ a\
> space/ 
> /usr/lib64/python2.7/site-packages/this module has a space/
> # python -c "__import__('this module has a space')"
> hello world

thank you for this detailed explanation.

> But yeah, don't do that :)

I'm trying to package an open source data mining program Orange
Apparently, they are using spaces in one of their packages:
I couldn't find out how they made it to work.

Best regards,

More information about the devel mailing list