Hi, (Sorry for this second message, the first one was rejected.)I've tried to "UW" compile htcondor from source but I haven't been able to complete the compile and produce lib/python/htcondor.so and lib/python/classad.so so that python3 would be able to use them.
If I set the cmake variables for the python3 version in htcondor main CMakeLists.txt
set(PYTHON_LIBRARY "/sw/python/3.4.4/lib/libpython3.so") set(PYTHON_INCLUDE_DIR "/sw/python/3.4.4/include/python3.4m") set(PYTHON_EXECUTABLE "/sw/python/3.4.4/bin/python3.4m")and have python3 in my path, boost compile fails. By default the cmake compile tries to compile boost 1.49.0 and according to you, boost 1.49.0 is not compatible with python3.
So I'd need to find a way to have the cmake process try to use boost 1.54.0 instead of 1.49.0 ? I haven't found where to change that. I didn't find the documentation for doing the proper build,
src/README.building talks about doing the UW build. I've successfully compiled boost 1.54.0 with$ ./bootstrap.sh --with-python=/sw/python/3.4.4/bin/python3 --with-python-root=/sw/python/3.4.4 \ --libdir=/sw/python/3.4.4/lib --includedir=/sw/python/3.4.4/include/python3.4m
$ ./b2 My host is a CentOS 6.7 with python 3.4.4 compiled from source. Thank you for your help, Aki
On 2016-01-20 16:51, Brian Bockelman wrote:Hi Aki, The python bindings shipped by the HTCondor team indeed are compiled against python2. However, you can recompile HTCondor against your own version of boost and python3 (I believe Ubuntu does this?): this is referred to a âproperâ build versus a âUWâ build (where the dependencies are downloaded by the build process). Compilation with python3 is known to work, but I suspect thereâs probably still undiscovered bugs because - to the best of my knowledge - there are no heavy users. BrianOn Jan 18, 2016, at 2:44 PM, Aki Ketolainen <akik@xxxxxxxxxxx> wrote: Hi,I'd like to start using htcondor python bindings for python3. Currently in v8.4.3 the bindings seem to be for python2(lib/python/htcondor.so and lib/python/classad.so).I found a mention of something related to this at https://lists.cs.wisc.edu/archive/htcondor-devel/2014-January/msg00000.shtml where it says: "Unfortunately, boost 1.49 does not support python3." I see boost 1.49.0 being downloaded and built:src='http://parrot.cs.wisc.edu/externals/boost_1_49_0.tar.gz'dst='/home/username/Downloads/htcondor/bld_external/boost_1_49_0-p3/dl/boost_1_49_0.tar.gz'Could someone tell me what needs to be done for the python bindings for python3?My host is a CentOS 6.7 with python 3.4.4 compiled from source. Thank you, Aki _______________________________________________ HTCondor-users mailing listTo unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with asubject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users The archives can be found at: https://lists.cs.wisc.edu/archive/htcondor-users/