incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r777144 - in /incubator/kato/branches/experimental/PyJVMTI: README.TXT build.sh setup.py
Date Thu, 21 May 2009 15:00:36 GMT
Author: spoole
Date: Thu May 21 15:00:36 2009
New Revision: 777144

URL: http://svn.apache.org/viewvc?rev=777144&view=rev
Log:
first attempt to make pyjvmi build work outside sandpit

Modified:
    incubator/kato/branches/experimental/PyJVMTI/README.TXT
    incubator/kato/branches/experimental/PyJVMTI/build.sh
    incubator/kato/branches/experimental/PyJVMTI/setup.py

Modified: incubator/kato/branches/experimental/PyJVMTI/README.TXT
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/PyJVMTI/README.TXT?rev=777144&r1=777143&r2=777144&view=diff
==============================================================================
--- incubator/kato/branches/experimental/PyJVMTI/README.TXT (original)
+++ incubator/kato/branches/experimental/PyJVMTI/README.TXT Thu May 21 15:00:36 2009
@@ -1,7 +1,7 @@
 This is an experimental project looking at using python and a jvmti extention to create a
jvmti agent.
 This agent should be able to provide basic jvmti interactions from a python console AND
-be able to produce a dump that can be read elsewhere.   Probably using python pickle to do
all
-the work.   FInally, the unpickled file needs somehow to be fronted by the Kato JavaRuntime
API
+be able to produce a dump that can be read elsewhere by the org.apache.kato.jvmti project

+
 
 To build and run:
 
@@ -20,8 +20,8 @@
 4 - Initiate a dump  ( ctl-\ on linux)  and you should drop into a python interactive shell
 5 - try the following...
 
-d=Dump()
-d.getThreads()
+save()
+
 
 
 

Modified: incubator/kato/branches/experimental/PyJVMTI/build.sh
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/PyJVMTI/build.sh?rev=777144&r1=777143&r2=777144&view=diff
==============================================================================
--- incubator/kato/branches/experimental/PyJVMTI/build.sh (original)
+++ incubator/kato/branches/experimental/PyJVMTI/build.sh Thu May 21 15:00:36 2009
@@ -1,3 +1,4 @@
+export DIRS=foo:foo
 javac -g ./kato/PauseJVM.java
 python -u ./setup.py build
 

Modified: incubator/kato/branches/experimental/PyJVMTI/setup.py
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/PyJVMTI/setup.py?rev=777144&r1=777143&r2=777144&view=diff
==============================================================================
--- incubator/kato/branches/experimental/PyJVMTI/setup.py (original)
+++ incubator/kato/branches/experimental/PyJVMTI/setup.py Thu May 21 15:00:36 2009
@@ -13,6 +13,15 @@
  #******************************************************************************"
 
 from distutils.core import setup, Extension
+import os
+
+dirs=['/home/spoole/javasdks/sun/jdk1.6.0_12/include',
+                              '/home/spoole/javasdks/sun/jdk1.6.0_12/include/linux'],
+if os.environ['DIRS'] :
+    dirs=os.environ['DIRS'].split(os.sep)
+
+    
+print "using include path of " , dirs
 
 module1 = Extension('libpyjvmti',
                     sources = ['pyjvmti.c'])
@@ -21,8 +30,8 @@
 setup (name = 'jvmti',
        version = '1.0',
        description = 'JVMTI Wrapper',
-       include_dirs = ['/home/spoole/javasdks/sun/jdk1.6.0_12/include',
-                              '/home/spoole/javasdks/sun/jdk1.6.0_12/include/linux'],
-      packages=['kato'],
+       include_dirs = dirs ,
+       packages=['kato'],
        ext_modules = [module1]
-       ) 
\ No newline at end of file
+       ) 
+



Mime
View raw message