Skip to content

Commit

Permalink
Fix the executable not found issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mertyildiran committed Jun 21, 2018
1 parent 925e3a0 commit d2ca3fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
13 changes: 11 additions & 2 deletions debian/fire/dragonfire
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#!/bin/sh
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'dragonfire==1.0.0','console_scripts','dragonfire'
__requires__ = 'dragonfire==1.0.0'
import re
import sys
from pkg_resources import load_entry_point

/usr/share/python/dragonfire/bin/dragonfire $@
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('dragonfire==1.0.0', 'console_scripts', 'dragonfire')()
)
11 changes: 6 additions & 5 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/make -f
#! /usr/bin/make -f

%:
dh $@ --with=python3
#export DH_VERBOSE = 1
export PYBUILD_NAME = foo
export PYBUILD_DISABLE_python3.5=test

override_dh_installman:
dh_installman debian/dragonfire.1
%:
dh $@ --with python2,python3 --buildsystem=pybuild

0 comments on commit d2ca3fb

Please sign in to comment.