Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add symlinking for setup.py-defined scripts and entry_points['console_scripts'] #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

monopolis
Copy link

This patch adds a <package>.links file to the debian folder, to set up
symlinks for scripts and entry_points described in setup.py. In addition,
it alters the method for parsing setup.py to be based on distutils
(setuptools is required to support the entry_points['console_scripts]-parsing).

This patch adds a <package>.links file to the `debian` folder, to set up
symlinks for scripts and entry_points described in `setup.py`. In addition,
it alters the method for parsing `setup.py` to be based on disttools
(after being monkey-patched by setuptools).
@johnarnold
Copy link

johnarnold commented Jul 26, 2016

I get an error with this PR:

Traceback (most recent call last):
File "/usr/local/bin/make-deb", line 21, in
sys.exit(main())
File "/usr/local/bin/make-deb", line 11, in main
debconf = DebianConfiguration(os.getcwd())
File "/usr/local/lib/python2.7/dist-packages/make_deb/init.py", line 41, in init
self.context.update(self._context_from_setuppy())
File "/usr/local/lib/python2.7/dist-packages/make_deb/init.py", line 73, in _context_from_setuppy
scripts += [script.split('=')[0] for script in dist.entry_points['console_scripts']]
TypeError: string indices must be integers, not str

@johnarnold
Copy link

Nevermind, it was an issue with my setup.py format. I can confirm this patch works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants