Hi all,

I'm trying to create a new ports app, which is a python application and depends 
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 found 
and is required by XXX

According to the argparse document, the fix is one of the followings. My 
question is how can I invoke "easy_install argparse" in my Makefile? By the 
way, 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

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to