I have a setuptools based setup.py that contains this

        entry_points = dict(
                            console_scripts = [
                                'rml2pdf=rlextra.rml2pdf.rml2pdf:main',
                                
'pageCatcher=rlextra.pageCatcher.pageCatcher:scriptInterp',
                                
'pdfexplorer=rlextra.pageCatcher.pdfexplorer:test',
                                ],
                            gui_scripts = [
                                
'diagra=rlextra.graphics.guiedit.guiedit:mainApp',
                                ],
                            ),

this appears to work OK and creates all 4 scripts in Windows, Linux & Mac OS, however, when uninstalling or upgrading I get an error for Mac OS when instead of trying to remove a pageCatcher script it tries instead to remove pagecatcher.

ie


Proceed (y/n)? y
Exception:
Traceback (most recent call last):
  File "/Users/rptlab/tmp/ttt/lib/python2.7/site-packages/pip/basecommand.py", 
line 122, in main
    status = self.run(options, args)
  File 
"/Users/rptlab/tmp/ttt/lib/python2.7/site-packages/pip/commands/uninstall.py", 
line 59, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/Users/rptlab/tmp/ttt/lib/python2.7/site-packages/pip/req.py", line 
1024, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/Users/rptlab/tmp/ttt/lib/python2.7/site-packages/pip/req.py", line 
594, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Users/rptlab/tmp/ttt/lib/python2.7/site-packages/pip/req.py", line 
1781, in remove
    renames(path, new_path)
  File "/Users/rptlab/tmp/ttt/lib/python2.7/site-packages/pip/util.py", line 
295, in renames
    shutil.move(old, new)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", 
line 301, in move
    copy2(src, real_dst)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", 
line 130, in copy2
    copyfile(src, dst)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", 
line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 
'/Users/rptlab/tmp/ttt/bin/pagecatcher'

Storing debug log for failure in /Users/rptlab/.pip/pip.log


this is with pip 1.5.2 & python 2.7.6 in Darwin 10.8.0 and other later Macs. Is this just a case issue?
--
Robin Becker
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to