Skip to content

Ability to copy scripts unmodified #444

Open
@ghost

Description

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?


Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.enhancementminor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions