2019-10-05 23:23:31 +02:00
|
|
|
#!/usr/bin/env python3
|
2019-10-06 23:25:02 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-10-05 23:23:31 +02:00
|
|
|
from setuptools import setup, find_packages
|
2019-10-31 12:48:15 +01:00
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
import shutil
|
|
|
|
|
|
|
|
setup_path = os.path.dirname(__file__)
|
|
|
|
data_path = os.path.join(setup_path, "builder/data")
|
|
|
|
|
|
|
|
for source_filename in glob.glob("%s/**" % data_path, recursive=True):
|
|
|
|
if os.path.isfile(source_filename):
|
|
|
|
dest_filename = source_filename.replace(data_path, '')
|
|
|
|
dest_folder = os.path.dirname(dest_filename)
|
|
|
|
|
|
|
|
print("installing %s to %s ..." % (source_filename, dest_filename))
|
|
|
|
try:
|
|
|
|
if not os.path.isdir(dest_folder):
|
|
|
|
os.makedirs(dest_folder)
|
|
|
|
|
|
|
|
shutil.copyfile(source_filename, dest_filename)
|
|
|
|
except Exception as e:
|
|
|
|
print("error installing %s: %s" % (source_filename, e))
|
|
|
|
|
|
|
|
# reload systemd units
|
|
|
|
os.system("systemctl daemon-reload")
|
2019-10-05 23:23:31 +02:00
|
|
|
|
|
|
|
required = []
|
|
|
|
with open('requirements.txt') as fp:
|
|
|
|
for line in fp:
|
|
|
|
line = line.strip()
|
|
|
|
if line != "":
|
|
|
|
required.append(line)
|
|
|
|
|
2019-10-31 12:48:15 +01:00
|
|
|
import pwnagotchi
|
|
|
|
|
2019-10-05 23:23:31 +02:00
|
|
|
setup(name='pwnagotchi',
|
|
|
|
version=pwnagotchi.version,
|
2019-10-05 23:30:06 +02:00
|
|
|
description='(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFI pwning.',
|
2019-10-05 23:23:31 +02:00
|
|
|
author='evilsocket && the dev team',
|
|
|
|
author_email='evilsocket@gmail.com',
|
|
|
|
url='https://pwnagotchi.ai/',
|
2019-10-05 23:28:29 +02:00
|
|
|
license='GPL',
|
2019-10-05 23:23:31 +02:00
|
|
|
install_requires=required,
|
|
|
|
scripts=['bin/pwnagotchi'],
|
2019-10-08 21:41:34 +02:00
|
|
|
package_data={'pwnagotchi': ['defaults.yml', 'pwnagotchi/defaults.yml', 'locale/*/LC_MESSAGES/*.mo']},
|
2019-10-06 13:41:55 -05:00
|
|
|
include_package_data=True,
|
2019-10-05 21:22:03 -05:00
|
|
|
packages=find_packages(),
|
2019-10-05 23:23:31 +02:00
|
|
|
classifiers=[
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
|
|
|
'Environment :: Console',
|
2019-10-05 21:22:03 -05:00
|
|
|
])
|