from distutils.core import setup

setup(
    description = 'File downloader for danbooru',
    author = 'Todd Gaunt',
    url = 'https://www.github.com/toddgaunt/danboorsync',
    download_url = 'https://www.github.com/toddgaunt/danboorsync',
    author_email = 'toddgaunt@protonmail.ch',
    version = '1.0',

    packages = ['danboorsync'],

    package_dir =  {'danboorsync':'src'},

    # Change these per distribution
    data_files = [('usr/share/man/man1', ['doc/danboorsync.1']),
                  ('usr/share/licenses/imgfetch/LICENSE', ['doc/LICENSE'])],

    scripts = ['/usr/bin/danboorsync'],
    name = 'danboorsync'
)

from distutils.core import setup

setup(
    description = 'File downloader for danbooru',
    author = 'Todd Gaunt',
    url = 'https://www.github.com/toddgaunt/danboorsync',
    download_url = 'https://www.github.com/toddgaunt/danboorsync',
    author_email = 'toddgaunt@protonmail.ch',
    version = '1.0',

    packages = ['danboorsync'],

    package_dir =  {'danboorsync':'src'},

    # Change these per distribution
    data_files = [('/usr/share/man/man1', ['doc/danboorsync.1']),
                  ('/usr/share/licenses/danboorsync/LICENSE', ['doc/LICENSE'])],

    scripts = ['/usr/bin/danboorsync'],
    name = 'danboorsync'
)

Fix data_files to install man and license documents
Setup: Fix data_files to install man and license documents

  from distutils.core import setup
  
  setup(
      description = 'File downloader for danbooru',
      author = 'Todd Gaunt',
      url = 'https://www.github.com/toddgaunt/danboorsync',
      download_url = 'https://www.github.com/toddgaunt/danboorsync',
      author_email = 'toddgaunt@protonmail.ch',
      version = '1.0',
  
      packages = ['danboorsync'],
  
      package_dir =  {'danboorsync':'src'},
  
      # Change these per distribution
-     data_files = [('usr/share/man/man1', ['doc/danboorsync.1']),
+     data_files = [('/usr/share/man/man1', ['doc/danboorsync.1']),
-                   ('usr/share/licenses/imgfetch/LICENSE', ['doc/LICENSE'])],
+                   ('/usr/share/licenses/danboorsync/LICENSE', ['doc/LICENSE'])],
  
      scripts = ['/usr/bin/danboorsync'],
      name = 'danboorsync'
  )
  
Fix data_files to install man and license documents
## Code Before:
from distutils.core import setup

setup(
    description = 'File downloader for danbooru',
    author = 'Todd Gaunt',
    url = 'https://www.github.com/toddgaunt/danboorsync',
    download_url = 'https://www.github.com/toddgaunt/danboorsync',
    author_email = 'toddgaunt@protonmail.ch',
    version = '1.0',

    packages = ['danboorsync'],

    package_dir =  {'danboorsync':'src'},

    # Change these per distribution
    data_files = [('usr/share/man/man1', ['doc/danboorsync.1']),
                  ('usr/share/licenses/imgfetch/LICENSE', ['doc/LICENSE'])],

    scripts = ['/usr/bin/danboorsync'],
    name = 'danboorsync'
)

## Instruction:
Fix data_files to install man and license documents
## Code After:
from distutils.core import setup

setup(
    description = 'File downloader for danbooru',
    author = 'Todd Gaunt',
    url = 'https://www.github.com/toddgaunt/danboorsync',
    download_url = 'https://www.github.com/toddgaunt/danboorsync',
    author_email = 'toddgaunt@protonmail.ch',
    version = '1.0',

    packages = ['danboorsync'],

    package_dir =  {'danboorsync':'src'},

    # Change these per distribution
    data_files = [('/usr/share/man/man1', ['doc/danboorsync.1']),
                  ('/usr/share/licenses/danboorsync/LICENSE', ['doc/LICENSE'])],

    scripts = ['/usr/bin/danboorsync'],
    name = 'danboorsync'
)
