Пример #1
0
    def run(self):
        # create the manpage
        import manpage

        # move manpage it into position
        # not sure which of these is preferred, just use the first that exists
        for candidate in [
            'prefix', 'install_base', 'install_data',
            'install_platbase', 'install_userbase'
        ]:
            root = getattr(self, candidate, None)
            if root:
                break
        if root:
            mandir = os.path.join(root, 'man', 'man1')
            try:
                os.makedirs(mandir)
            except (IOError, OSError) as err:
                if err.errno != errno.EEXIST:
                    print(str(err))
            manfile = os.path.join(mandir, 'ec.1')
        else:
            manfile = 'ec.1'
        print('Installing manpage to %s.' % manfile)
        manpage.write(manfile)

        # complete the install
        Install.run(self)
Пример #2
0
from setuptools import setup
from abraxas.version import VERSION

# Create/update manpage before installing
import manpage
manpage.write()

def get_long_description():
    contents = []
    for each in ['README.rst', 'CHANGES.rst']:
        with open(each) as f:
            contents += [f.read()]
    return '\n\n'.join(contents)

def main():
    setup(
        name='abraxas',
        description="password generator",
        long_description=get_long_description(),
        author="Kale & Ken Kundert",
        author_email='*****@*****.**',
        version=VERSION,
        url='http://nurdletech.com/linux-utilities/abraxas',
        download_url='https://github.com/kenkundert/abraxas/tarball/master',
        scripts=['main.py'],
        packages=['abraxas'],
        py_modules=['fileutils'],
        zip_safe = False,
        install_requires=[
            'python-gnupg',
                # Be careful.  There's a package called 'gnupg' that's an 
Пример #3
0
#!/bin/env python
from distutils.core import setup
import os
from calculator import versionNumber

# Create/update manpage before installing
import manpage
manpage.write('ec.1')

# Return the contents of a file
# Path is relative to the location of this setup file.
def contents(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name='ec'
  , version=versionNumber
  , description='engineering calculator'
  , long_description=contents('README')
  , author="Ken Kundert"
  , author_email='*****@*****.**'
  , url='http://www.nurdletech.com/ec.html'
  , download_url='https://github.com/KenKundert/ec0/downloads'
  , scripts=['ec']
  , py_modules=['ec', 'calculator', 'actions', 'engfmt', 'cmdline', 'textcolors']
  , data_files=[
        ('man/man1', ['ec.1'])
    ]
  , classifiers=[
      'Development Status :: 4 - Beta',
      'Environment :: Console',