title: Building a debian package with python script
body: <p>Having a directory</p>
  <pre><code>root
  -setup.py
  
  src/
    -app.py (with main function)
  </code></pre>
  <p>with setup.py</p>
  <pre><code>from setuptools import setup
  
  
  setup(
      name=&quot;testing_python_package&quot;,
      version=1.0,
      author=&quot;Lee&quot;,
      description=&quot;testing python stuff for deb package&quot;,
      packages=[&quot;src&quot;],
      entry_points={&quot;console_scripts&quot;: [&quot;pytesting=src.app:main&quot;]},
  )
  </code></pre>
  <p>my goal is to create a deb package that I can install somewhere else for example (or same machine with dpkg). Read some stuff about it and installed all required stuff. Then I used command</p>
  <p><code>sudo python3 setup.py --command-packages=stdeb.command bdist_deb</code></p>
  <p>for creating source and binary packages but I'm not seeing any .deb files and getting this output + error:</p>
  <pre><code>running bdist_deb
  running sdist_dsc
  running egg_info
  writing testing_python_package.egg-info/PKG-INFO
  writing dependency_links to testing_python_package.egg-info/dependency_links.txt
  writing entry points to testing_python_package.egg-info/entry_points.txt
  writing top-level names to testing_python_package.egg-info/top_level.txt
  reading manifest file 'testing_python_package.egg-info/SOURCES.txt'
  writing manifest file 'testing_python_package.egg-info/SOURCES.txt'
  running sdist
  warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md
  
  running check
  warning: check: missing required meta-data: url
  
  warning: check: missing meta-data: if 'author' supplied, 'author_email' must be supplied too
  
  creating testing_python_package-1.0
  creating testing_python_package-1.0/src
  creating testing_python_package-1.0/testing_python_package.egg-info
  copying files to testing_python_package-1.0...
  copying setup.py -&gt; testing_python_package-1.0
  copying src/__init__.py -&gt; testing_python_package-1.0/src
  copying src/app.py -&gt; testing_python_package-1.0/src
  copying testing_python_package.egg-info/PKG-INFO -&gt; testing_python_package-1.0/testing_python_package.egg-info
  copying testing_python_package.egg-info/SOURCES.txt -&gt; testing_python_package-1.0/testing_python_package.egg-info
  copying testing_python_package.egg-info/dependency_links.txt -&gt; testing_python_package-1.0/testing_python_package.egg-info
  copying testing_python_package.egg-info/entry_points.txt -&gt; testing_python_package-1.0/testing_python_package.egg-info
  copying testing_python_package.egg-info/top_level.txt -&gt; testing_python_package-1.0/testing_python_package.egg-info
  Writing testing_python_package-1.0/setup.cfg
  Creating tar archive
  removing 'testing_python_package-1.0' (and everything under it)
  dpkg-buildpackage: source package testing-python-package
  dpkg-buildpackage: source version 1.0-1
  dpkg-buildpackage: source distribution unstable
  dpkg-buildpackage: source changed by unknown &lt;unknown@unknown&gt;
   dpkg-source --before-build testing-python-package-1.0
  dpkg-source: info: using options from testing-python-package-1.0/debian/source/options: --extend-diff-ignore=\.egg-info$
  dpkg-checkbuilddeps: error: Unmet build dependencies: build-essential:native
  dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
  dpkg-buildpackage: warning: (Use -d flag to override.)
  Traceback (most recent call last):
    File &quot;setup.py&quot;, line 10, in &lt;module&gt;
      entry_points={&quot;console_scripts&quot;: [&quot;pytesting=src.app:main&quot;]}
    File &quot;/home/USER/.local/lib/python3.6/site-packages/setuptools/__init__.py&quot;, line 144, in setup
      return distutils.core.setup(**attrs)
    File &quot;/usr/lib/python3.6/distutils/core.py&quot;, line 148, in setup
      dist.run_commands()
    File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 955, in run_commands
      self.run_command(cmd)
    File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_command
      cmd_obj.run()
    File &quot;/home/USER/.local/lib/python3.6/site-packages/stdeb/command/bdist_deb.py&quot;, line 34, in run
      self.run_command('sdist_dsc')
    File &quot;/usr/lib/python3.6/distutils/cmd.py&quot;, line 313, in run_command
      self.distribution.run_command(command)
    File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_command
      cmd_obj.run()
    File &quot;/home/USER/.local/lib/python3.6/site-packages/stdeb/command/sdist_dsc.py&quot;, line 144, in run
      ignore_source_changes=self.ignore_source_changes,
    File &quot;/home/USER/.local/lib/python3.6/site-packages/stdeb/util.py&quot;, line 1569, in build_dsc
      dpkg_buildpackage(*args, cwd=fullpath_repackaged_dirname)
    File &quot;/home/USER/.local/lib/python3.6/site-packages/stdeb/util.py&quot;, line 585, in dpkg_buildpackage
      process_command(args, cwd=cwd)
    File &quot;/home/USER/.local/lib/python3.6/site-packages/stdeb/util.py&quot;, line 226, in process_command
      check_call(args, cwd=cwd)
    File &quot;/home/USER/.local/lib/python3.6/site-packages/stdeb/util.py&quot;, line 59, in check_call
      raise CalledProcessError(retcode)
  stdeb.util.CalledProcessError: 3
  </code></pre>
  <p>What am I doing wrong??</p>
  <p>Thank you!</p>
  <p>used this as source: <a href="https://stackoverflow.com/questions/7110604/is-there-a-standard-way-to-create-debian-packages-for-distributing-python-progra">Is there a standard way to create Debian packages for distributing Python programs?</a></p>