bbockelm / python-condor

A python wrapper around common Condor tools
0 stars 3 forks source link

What should I set CONDOR_LIB to? #1

Open soichih opened 11 years ago

soichih commented 11 years ago

I am using condor installation that comes with OSG repo, which happens to be following at the moment..

condor-7.8.6-1.osg.el6.x86_64

When I do "cmake .", I get following message.

2013-03-22 23:54:22 UTC [hayashis@soichi6:~/git/python-condor]$ cmake . CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE): Could NOT find Condor (missing: CONDOR_LIB) Call Stack (most recent call first): cmake/FindCondor.cmake:28 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:32 (find_package)

I am not sure what I should set CONDOR_LIB to.. (I tried /var/lib/condor but didn't work)

Meanwhile, I see following in the README

Note the following environment or CMake variables are required to build:

  • CONDOR_DIR - path to top-level directory of the HTCondor source code.

Do I really need to do this also? If so, how should I go about installing condor source that matches the condor distributed by OSG? (How can I keep it in-sync with OSG repo's?)

Thanks, Soichi

bbockelm commented 11 years ago

Hi Soichi,

Yes, you need the HTCondor source code in order to build the project. This is because HTCondor exports no APIs for plugin writers.

Since we now maintain and ship the python bindings with HTCondor itself, I'd recommend you try 7.9.4 (either build your own or from the UW RPMs). OSG is working toward getting 7.9.4 in the osg-testing repo too.

Brian

On Mar 22, 2013, at 7:01 PM, Soichi Hayashi notifications@github.com wrote:

I am using condor installation that comes with OSG repo, which happens to be following at the moment..

condor-7.8.6-1.osg.el6.x86_64

When I do "cmake .", I get following message.

2013-03-22 23:54:22 UTC [hayashis@soichi6:~/git/python-condor]$ cmake . CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE): Could NOT find Condor (missing: CONDOR_LIB) Call Stack (most recent call first): cmake/FindCondor.cmake:28 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:32 (find_package)

I am not sure what I should set CONDOR_LIB to.. (I tried /var/lib/condor but didn't work)

Meanwhile, I see following in the README

Note the following environment or CMake variables are required to build:

CONDOR_DIR - path to top-level directory of the HTCondor source code. Do I really need to do this also? If so, how should I go about installing condor source that matches the condor distributed by OSG? (How can I keep it in-sync with OSG repo's?)

Thanks, Soichi

— Reply to this email directly or view it on GitHub.

soichih commented 11 years ago

I see condor-7.8.6 on osg-testing repo. Do you know when 7.9.4 will be released? (if it's close then I will just wait)

Unrelated question.. Is it possible to write a python-condor script which will subscribe to certain condor events (like Job finish, cancel, etc..) via callback function?

johnlambert commented 11 years ago

Soichi-

7.9.4 has already been released, you can find it on the HTCondor homepage.

On Wednesday, March 27, 2013, Soichi Hayashi notifications@github.com wrote:

I see condor-7.8.6 on osg-testing repo. Do you know when 7.9.4 will be released? (if it's close then I will just wait)

Unrelated question.. Is it possible to write a python-condor script which will subscribe to certain condor events (like Job finish, cancel, etc..) via callback function?

— Reply to this email directly or view it on GitHub.

bbockelm commented 11 years ago

There's not much in the way of callback functionality within HTCondor.

HTCondor does have a event log parser; I previously combined that with inotify to provide callback-like functionality in C++. I suppose I could brush that work off and add bindings for that too. However, I doubt I'll be able to take this up until after 8.0. Patches are accepted, of course!