diff options
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/.cvsignore | 1 | ||||
-rwxr-xr-x | source3/python/setup.py (renamed from source3/python/setup.py.in) | 14 |
2 files changed, 4 insertions, 11 deletions
diff --git a/source3/python/.cvsignore b/source3/python/.cvsignore index 8ce381cd39..7e99e367f8 100644 --- a/source3/python/.cvsignore +++ b/source3/python/.cvsignore @@ -1,2 +1 @@ -setup.py *.pyc
\ No newline at end of file diff --git a/source3/python/setup.py.in b/source3/python/setup.py index 5896301245..b39ef448c1 100755 --- a/source3/python/setup.py.in +++ b/source3/python/setup.py @@ -30,21 +30,15 @@ import sys, string, os # method of adding setup commands and will also confuse people who are # familiar with the python Distutils module. -samba_objs = "" -if os.environ.has_key("PYTHON_OBJS"): - samba_objs = os.environ.get("PYTHON_OBJS") +samba_objs = os.environ.get("PYTHON_OBJS", "") -samba_cflags = "" -if os.environ.has_key("PYTHON_CFLAGS"): - samba_cflags = os.environ.get("PYTHON_CFLAGS") +samba_cflags = os.environ.get("PYTHON_CFLAGS", "") -samba_srcdir = "" -if os.environ.has_key("SRCDIR"): - samba_srcdir = os.environ.get("SRCDIR") +samba_srcdir = os.environ.get("SRCDIR", "") # These variables are filled in by configure -samba_libs = "@LIBS@" +samba_libs = os.environ.get("LIBS", "") # Convert libs and objs from space separated strings to lists of strings # for distutils to digest. Split "-l" prefix off library list. |