Skip to content

Commit

Permalink
PostInstallCommand test
Browse files Browse the repository at this point in the history
Issue #145
  • Loading branch information
damies13 committed Aug 19, 2024
1 parent dac566a commit a4dd913
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions setup-manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@

import os
import setuptools
import sys

class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
setuptools.command.install.run(self)
# PUT YOUR POST-INSTALL SCRIPT HERE or CALL A FUNCTION
sys.stdout.write("Creating Desktop Shortcut for RFSwarm Manager...\n")
install_dir = join(ROOT_DIR, SOURCE_DIR)
sys.stdout.write("install_dir: " + install_dir + "\n")

with open("README_PyPi.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down Expand Up @@ -32,5 +44,12 @@
'Say Thanks!': 'https://github.com/damies13/rfswarm#donations',
'Source': 'https://github.com/damies13/rfswarm',
},
cmdclass={
'install': PostInstallCommand,
},
entry_points={'console_scripts': ['rfswarm = rfswarm_manager.rfswarm:RFSwarm', 'rfswarm-manager = rfswarm_manager.rfswarm:RFSwarm']},
)



# https://pypi.org/project/pyshortcuts/

0 comments on commit a4dd913

Please sign in to comment.