New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert_path fails with empty pathname #36804
Comments
In distutils/util.py, in the function convert_path, I find I def convert_path (pathname):
...
if os.sep == '/':
return pathname
>> if pathname=='':
>> return pathname This is required when installing piddle-1.0.15 on a Win32 I don't know if it is something specific to piddle, Win32, |
Logged In: YES This approach seems reasonable. |
Logged In: YES Martin, could you please review this patch? Should this be |
Logged In: YES I've checked piddle, and the traceback is Traceback (most recent call last):
File "setup.py", line 28, in ?
packages = ['piddle', 'piddle.piddleGTK',
'piddle.piddleSVG', 'piddle.piddleTK2'] )
File "/usr/local/lib/python2.3/distutils/core.py", line
140, in setup
dist.run_commands()
File "/usr/local/lib/python2.3/distutils/dist.py", line
886, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.3/distutils/dist.py", line
906, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.3/distutils/command/install.py",
line 504, in run
self.run_command(cmd_name)
File "/usr/local/lib/python2.3/distutils/cmd.py", line
334, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python2.3/distutils/dist.py", line
906, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.3/distutils/command/install_data.py",
line 61, in run
dir = convert_path(f[0])
File "/usr/local/lib/python2.3/distutils/util.py", line
85, in convert_path
assert pathname
AssertionError (the assertion is a local change). This in turn results from data_files = [ ('piddle/pilfonts', pilfontsList),
('piddle', ['src/piddle/python.gif']),
('', ['src/piddle.pth']) ], i.e. it tries to install piddle.pth into install_dir. So the change is ok, although I'm not sure whether |
Logged In: YES Checked in as distutils/util.py 1.70 and 1.65.6.1. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: