Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2017 09:06:15 +0000
From:      Hongjiang Zhang <honzhan@microsoft.com>
To:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   How to call easy_install argparse after installation
Message-ID:  <HK2P15301MB000356BC44C1046831EDE9A5B5130@HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm trying to create a new ports app, which is a python application and dep=
ends on argparse. For python 2.7, argparse is builtin.
Unfortunately, when the app is starting, it complains:

pkg_resources.DistributionNotFound: The 'argparse' distribution was not fou=
nd and is required by XXX

According to the argparse document, the fix is one of the followings. My qu=
estion is how can I invoke "easy_install argparse" in my Makefile? By the w=
ay, argparse has already been removed from ports.

  1.  python setup.py install
  2.  easy_install argparse
  3.  pip install argparse
  4.  putting argparse.py in some directory listed in sys.path should also =
work

Thanks

Hongjiang Zhang




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HK2P15301MB000356BC44C1046831EDE9A5B5130>