summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba/samba_python.py
Commit message (Collapse)AuthorAgeFilesLines
* wafsamba: explicitly use allow_warnings=True for SAMBA_PYTHON()Stefan Metzmacher2014-04-021-0/+1
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Apr 2 11:04:36 CEST 2014 on sn-devel-104
* build: Raise minimum python version to 2.5.0 for samba buildAndrew Bartlett2013-04-111-2/+2
| | | | | | | | | | | | | | | | RHEL5 has a python26 package for a modern python, and was the main reason we kept python 2.5 support. However, this support never actually worked for AD DC installations, as samba-tool uses a feature only in 2.5 and above. Very few folks noticed and those were on RHEL5, and moving to 2.5 allows us to remove some other workarounds. Andrew Bartlett Reviewed-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* build: Replace #!/usr/bin/env python with passed in PYTHON=Andrew Bartlett2013-04-101-0/+10
| | | | | | | | | | This means that if we were forced to use a specific python for the build, we will put that binary into the top of samba-tool, so it continues to work after the install. Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org>
* build: Change bin/default/python -> bin/python symlink to ↵Andrew Bartlett2013-03-021-1/+1
| | | | | | | | bin/default/python_modules This avoids a collision with the new top level python directory. Andrew Bartlett
* waf: Fix mispellingSimo Sorce2012-04-191-3/+3
| | | | | Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Apr 19 17:36:41 CEST 2012 on sn-devel-104
* waf: Simplify handling of python modules.Jelmer Vernooij2011-11-131-17/+6
|
* waf: Don't link python modules against libpython2.x, consistent with other ↵Jelmer Vernooij2011-11-131-2/+2
| | | | | | Python modules. Rather, rely just on waf's pyext feature. This fixes a warning from dh_python2.
* waf: use PYTHONARCHDIR for installing python shared libsAndrew Tridgell2011-01-141-1/+1
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jan 14 08:19:40 CET 2011 on sn-devel-104
* build: introduce SAMBA_CHECK_PYTHON_HEADERSMatthieu Patou2010-12-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | | This function is a wrapper around waf's check_python_header. It avoids searching more than once for the headers bringing a small speed improvement and a better lisibility of the logs. But it's mainly to avoid a nasty bug when python libraries are in path pointed by python_LIBPL (ie. /usr/local/lib/python2.6/config/) instead of python_LIBDIR (ie. /usr/local/lib). On the first call waf will correctly find that in order to link with python libs it needs to add -L$python_LIBPL. But on the next calls of check_python_headers, waf will use both the current library path value (ie. -L/usr/local/lib/python2.6/config) and -L$python_LIBDIR (ie. /usr/local/lib/) which will make him beleive that python libraries are in $python_LIBDIR which at the end will make the final link test fails in check_python_headers as it will not use the good directory. So by avoiding calling check_python_headers more than once we avoid making waf fooling itself.
* wafsamba: Clarify needs_python argument name, use pyembed/pyext whereJelmer Vernooij2010-10-101-3/+3
| | | | | | | | | applicable. Allow using both pyembed and pyext, to prevent unresolved symbols. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 10 03:54:01 UTC 2010 on sn-devel-104
* build: only link install targets at install timeAndrew Tridgell2010-04-061-11/+12
|
* build: reuse SAMBA_LIBRARY() to build python modulesAndrew Tridgell2010-04-061-31/+14
| | | | | This allows the rpath logic to be shared, and simplifies the install logic
* build: mark python rules as being part of the "main" groupAndrew Tridgell2010-04-061-0/+2
|
* build: install build python modules correctlyAndrew Tridgell2010-04-061-1/+9
|
* build: support variable expansion in source= arguments to build rulesAndrew Tridgell2010-04-061-0/+3
| | | | | | | This makes it much easier to follow the s3 approach to lists of source files in the top level wscript Pair-Programmed-With: Kai Blin <kai@samba.org>
* build: fixed the install name for python modulesAndrew Tridgell2010-04-061-4/+4
|
* build: fixed init function sentinal for python modulesAndrew Tridgell2010-04-061-1/+1
|
* build: waf quicktest nearly worksAndrew Tridgell2010-04-061-9/+28
| | | | | Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
* build: separate out dependencies and python rulesAndrew Tridgell2010-04-061-0/+44