[Python-Dev] issue2233: ... extra slash before $(DESTDIR) ... cygwin install fail

Roumen Petrov bugtrack at roumenpetrov.info
Sat Jan 17 15:34:34 CET 2009


Hi All,

May I ask for a vote how issue to be resolved.
The problem is command "... setup.py install ... --root=/$(DESTDIR)" if
DESTDIR is specified:
error: could not create '//...': No such host or network path

Currently issue http://bugs.python.org/issue2233 propose three solutions:

1) replace "slash before $(DESTDIR)" with "/./" . Lets call solution
"hacky".

2) lets call second one "shell script based":
INSTROOT=$(DESTDIR); test -z "$$INSTROOT" && INSTROOT=/; ... setup.py
install ... --root=$$INSTROOT

3) the third "shell parameter expansion":
... --root=$${DESTDIR-/}
The question for last one is: "So, if a user executes "make DESTDIR=
install", then the build will fail. Or, maybe we shouldn't worry about
that corner case."


Which solution is prefered ? What about other solutions ?


Roumen



More information about the Python-Dev mailing list