Python Forum
What am I doing wrong in setup.py
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What am I doing wrong in setup.py
#1
Hi

I recently created my first pypi package (trespass). I can use pip install trespass and it pulls the dependencies, creates the /usr/lib/python3.6/site-packages/trespass directory and python /usr/lib/python3.6/site-packages/trespass/trespass.py runs correctly. What I seem to be missing is how do I install trespass to /usr/bin? I looked at a few example setup.py files but I can't see where I messed up.

Here are my setup.py file and setup.cfg files

Quote:from distutils.core import setup
setup(
name = 'trespass',
packages = ['trespass'], # this must be the same as the name above
install_requires=[
'numpy',
'pygpgme',
'pyperclip',
'argparse',
],
version = '0.6.5.1',
description = 'A secure password keeper',
author = 'Graham Smith',
author_email = '[email protected]',
license='GPL3',
url = 'https://github.com/gps1539/trespass', # use the URL to the github repo
download_url = 'https://github.com/gps1539/trespass/archive/0.1.tar.gz',
keywords = ['testing', 'logging', 'example'], # arbitrary keywords
classifiers = [],
)

Quote:[metadata]
description-file = README.md
Reply


Messages In This Thread
What am I doing wrong in setup.py - by gps1539 - Nov-09-2017, 07:47 PM
RE: What am I doing wrong in setup.py - by gps1539 - Nov-09-2017, 08:49 PM
RE: What am I doing wrong in setup.py - by snippsat - Nov-10-2017, 07:08 AM
RE: What am I doing wrong in setup.py - by gps1539 - Nov-10-2017, 08:46 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020