コード例 #1
0
ファイル: setup.py プロジェクト: kini/multibootusb
#from setuptools import setup, find_packages
import os
import sys
from scripts.gen import mbusb_version


def get_data(_dir):
    data = []
    for dirpath, dirnames, filenames in os.walk(_dir):
        for f in filenames:
            cfg_file = os.path.join(dirpath, f)
            data.append(cfg_file)
    return data


Version = mbusb_version()
print(Version)
setup(
    name='multibootusb',
    version=Version,
    packages=[
        'scripts', 'scripts.pyudev', 'scripts.pyudev.device',
        'scripts.pyudev._ctypeslib', 'scripts.pyudev._os', 'scripts.gui',
        'scripts.progressbar'
    ],
    #packages=find_packages(),
    scripts=['multibootusb', 'multibootusb-pkexec'],
    platforms=['Linux'],
    url='http://multibootusb.org/',
    license='General Public License (GPL)',
    author='Sundar',
コード例 #2
0
ファイル: setup.py プロジェクト: mbusb/multibootusb
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name:     setup.py
# Purpose:  Module to create packages or install multibootusb package from source
# Authors:  Sundar
# Licence:  This file is a part of multibootusb package. You can redistribute it or modify
# under the terms of GNU General Public License, v.2 or above

from distutils.core import setup
#from setuptools import setup, find_packages
import os
from scripts.gen import mbusb_version
import shutil


Version = mbusb_version()


def get_data(_dir):
    """
    Get path to all files, including sub directories
    :param _dir: Path to top level directory
    :return: Path to files as list
    """
    data = []
    for dirpath, dirnames, filenames in os.walk(_dir):
        for f in filenames:
            cfg_file = os.path.join(dirpath, f)
            data.append(cfg_file)
    return data