File: setup.py

package info (click to toggle)
npm2deb 0.2.8-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 252 kB
  • sloc: python: 1,694; makefile: 2
file content (34 lines) | stat: -rwxr-xr-x 1,024 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python3

from distutils.core import setup
from distutils.command.install_scripts import install_scripts
from npm2deb import VERSION
import shutil


class remove_extension(install_scripts):
    def run(self):
        install_scripts.run(self)
        for script in self.get_outputs():
            if script.endswith(".py"):
                shutil.move(script, script[:-3])


setup(name='npm2deb',
      version=VERSION,
      author='Leo Iannacone',
      author_email='l3on@ubuntu.com',
      description='A script to make faster and easier packaging nodejs modules',
      url='https://github.com/LeoIannacone/npm2deb',
      license='GNU GPL-3',
      scripts=['npm2deb.py'],
      packages=['npm2deb'],
      data_files=[
          ('share/man/man1', ['man/npm2deb.1']),
          ('share/doc/npm2deb', ['README.md', 'AUTHORS']),
          ('share/bash-completion/completions', [
              'etc/bash_completion.d/npm2deb'
          ])
      ],
      cmdclass={"install_scripts": remove_extension},
      )