On Tue, Dec 15, 2009 at 5:14 PM, Paul McNett <[email protected]> wrote:
> Carl Karsten wrote:
>> OK, what I thought worked never did, and was never expected to. I
>> think I had an extra copy of dabo around that screwed up my tests.
>> fresh box, talked to some distutils folks, feel good now.
>>
>> attached patch makes dabo's setup work with pip.
>>
>> All it does is add the path to the setup.py dir, which for normal
>> usage will be '', so no effect.
>
> As you discovered, no attachments allowed! Can you copy/paste instead? Or,
> open a
> ticket and attach the patch there?
>
basically, add setupDir:
Index: setup.py
===================================================================
--- setup.py (revision 5552)
+++ setup.py (working copy)
@@ -7,9 +7,10 @@
from dabo.__version__ import version
daboVersion = version["version"]
+setupDir = os.path.dirname(__file__)
# List the paths under dabo/icon/themes:
-iconDir = os.path.join("dabo", "icons", "themes")
+iconDir = os.path.join(setupDir, "dabo", "icons", "themes")
iconDirs = {}
def getIconSubDir(arg, dirname, fnames):
if ".svn" not in dirname and "cards" not in dirname.lower() and
dirname[-1] != "\\":
@@ -21,7 +22,7 @@
os.path.walk(iconDir, getIconSubDir, iconDir)
# locale dirs:
-localeDir = os.path.join("dabo", "locale")
+localeDir = os.path.join(setupDir, "dabo", "locale")
localeDirs = []
def getLocaleDirs(arg, dirname, fnames):
if ".svn" not in dirname and dirname[-1] != "\\":
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]