Files
PiPlot2D/setup.py
2020-11-15 09:39:29 +00:00

45 lines
1.3 KiB
Python
Executable File

from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
import os
class CustomInstallCommand(install):
def run(self):
install.run(self)
current_dir_path = os.path.dirname(os.path.realpath(__file__))
create_service_script_path = os.path.join(current_dir_path, 'install_scripts', 'create_service.sh')
subprocess.check_output([create_service_script_path])
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="PiPlot2D",
version="0.0.1",
author="sinseman44",
author_email="sinseman44@gmail.com",
description="Control PiPlot2D system",
long_description="Control PiPlot2D system",
long_description_content_type="text/markdown",
url="https://github.com/sinseman44/PiPlot2D",
scripts=['piplotter'],
cmdclass={
'install': CustomInstallCommand
},
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux",
],
install_requires=[
'RPi.GPIO',
'RPLCD',
'PyCNC<=2.0.0'
],
dependency_links=[
"https://github.com/sinseman44/PyCNC/archive/v2.0.0.zip#egg=pycnc-2.0.0",
],
python_requires='>=3.6',
)