#67: pkg_resources resolution problem
--------------------------+-------------------------------------------------
       Id:  67            |      Status:  new                     
Component:  PyInstaller   |    Modified:  Wed Aug  2 13:17:32 2006
 Severity:  normal        |   Milestone:                          
 Priority:  normal        |     Version:                          
    Owner:  giovannibajo  |    Reporter:  openticket              
--------------------------+-------------------------------------------------
 I'm using this code:
 {{{
 #!python
 try:
     import pkg_resources
     try:
         g_dist = pkg_resources.get_distribution("4suite")
         print "Setuptools is installed and used"
     except pkg_resources.DistributionNotFound:
         print "Setuptools is installed but not being used"
 except ImportError:
     print "Setuptools is not installed"
 }}}

 When I execute the code with the python interpreter:
 {{{
 $ python testpkgresources.py
 Setuptools is installed and used
 }}}
 But when I build the program with pyinstaller I get:
 {{{
 $ ./disttestpkgresources/testpkgresources
 Setuptools is installed but not being used
 }}}

-- 
Ticket URL: <http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi/ticket/67>
PyInstaller <http://pyinstaller.hpcf.upr.edu>
PyInstaller

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to