NameError: name 'RULES_BINARY_ALL_TARGET' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
stdeb (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running this command:
$ sudo python3 setup.py --command-
Produces this output:
running sdist_dsc
running egg_info
writing entry points to ravenc.
writing top-level names to ravenc.
writing dependency_links to ravenc.
writing requirements to ravenc.
writing ravenc.
reading manifest file 'ravenc.
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.xml' under directory 'ravenc'
writing manifest file 'ravenc.
Traceback (most recent call last):
File "setup.py", line 34, in <module>
entry_points = {'gui_scripts': ['ravenc = ravenc.
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/usr/lib/
debinfo = self.get_debinfo()
File "/usr/lib/
allow_
File "/usr/lib/
RULES_
NameError: name 'RULES_
A quick look into utils.py shows that RULES_BINARY_
For reference:
The end of utils.py on github looks like this:
RULES_OVERRIDE_
override_
%(rules_
%(scripts_cleanup)s
"""
RULES_OVERRIDE_
override_
dh_python3
%(scripts)s
"""
RULES_BINARY_TARGET = """
binary: binary-arch binary-indep
"""
RULES_BINARY_
binary: binary-indep
"""
RULES_BINARY_
binary-arch: build
%(dh_binary_
"""
RULES_BINARY_
binary-indep: build
%(dh_binary_
%(dh_installmim
%(dh_desktop_
"""
and installed on my system like this:
CONTROL_PY2_STANZA = """
Package: %(package)s
Architecture: %(architecture)s
Depends: %(depends)s
%(package_
%(long_
"""
CONTROL_PY3_STANZA = """
Package: %(package3)s
Architecture: %(architecture3)s
Depends: %(depends3)s
%(package_
%(long_
"""
RULES_MAIN = """\
#!/usr/bin/make -f
# This file was automatically generated by stdeb %(stdeb_version)s at
# %(date822)s
%(exports)s
%(percent_symbol)s:
dh $@ %(sequencer_
%(override_
%(binary_
"""
RULES_OVERRIDE_
override_
dh_auto_install
%(scripts_cleanup)s
"""
RULES_BINARY_
binary-arch: build
%(dh_binary_
"""
RULES_BINARY_
binary-indep: build
%(dh_binary_
%(dh_installmim
%(dh_desktop_
"""
Status changed to 'Confirmed' because the bug affects multiple users.