xunzhang / gflags

Automatically exported from code.google.com/p/gflags
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

python installer fails #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd python
2. sudo python setup.py install
3.

What is the expected output? What do you see instead?

   Expected:
running install
running build
running build_py
running install_lib
running install_data

   Got:
running install
running build
running build_py
running install_lib
running install_data
warning: install_data: setup script did not provide a directory for '/usr/
local/bin' -- installing right in '/usr/local'
error: can't copy '/usr/local/bin': doesn't exist or not a regular file

What version of the product are you using? On what operating system?
gflags-0.4 on Redhat Enterprise Linux 4

Please provide any additional information below.

From what I can tell, it looks like a line in the setup.py file should be 
changed:

  current:
      data_files=["gflags2man.py"])
  change to:
      data_files=[ ("/usr/local/bin", ["gflags2man.py"])  ]

Original issue reported on code.google.com by sid...@gmail.com on 12 Jun 2007 at 9:51

GoogleCodeExporter commented 9 years ago
Note:  format found at http://docs.python.org/dist/node13.html

Original comment by sid...@gmail.com on 12 Jun 2007 at 9:56

GoogleCodeExporter commented 9 years ago
Thanks for the pointer!  I've reproduced the problem and have a fix out for the 
next
release (which should be soon).

Original comment by csilv...@gmail.com on 12 Jun 2007 at 10:03

GoogleCodeExporter commented 9 years ago
I just released gflags 0.5, which should fix this problem.

Original comment by csilv...@gmail.com on 13 Jun 2007 at 12:36