setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

Ability to copy scripts unmodified

Open ghost opened this issue 10 years ago • 0 comments

Originally reported by: hut2 (Bitbucket: hut2, GitHub: Unknown)


I use a setup.py script like

#!python

from setuptools import setup
setup(
    scripts=['scripts/ranger', 'scripts/rifle']
   ...)

Now the script scripts/ranger contains an embedded polyglot shell script to enable an extra feature. That's why I need it to be copied as is. Distutils did that, but setuptools creates a file like this, which lacks the embedded shell script, disabling the extra feature:

#!python
#!/usr/bin/python3
# EASY-INSTALL-SCRIPT: 'ranger==1.7.1','rifle'
__requires__ = 'ranger==1.7.1'
__import__('pkg_resources').run_script('ranger==1.7.1', 'rifle')

The script I'm talking about is this one: https://github.com/hut/ranger/blob/df64986fea91c9103baa1a07c5021cc0b4bb7a6f/ranger.py . Is there some way to get this to work with setuptools?


  • Bitbucket: https://bitbucket.org/pypa/setuptools/issue/444

ghost avatar Sep 30 '15 19:09 ghost