incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r784830 - in /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti: .project .pydevproject build.xml src/python/ src/python/kato/PauseJVM.java src/python/setup.py
Date Mon, 15 Jun 2009 15:55:33 GMT
Author: spoole
Date: Mon Jun 15 15:55:33 2009
New Revision: 784830

URL: http://svn.apache.org/viewvc?rev=784830&view=rev
Log:
added build capability to pyjvmti in experimental branch

Added:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.pydevproject
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/build.xml
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/setup.py
Removed:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/kato/PauseJVM.java
Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.project
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/
  (props changed)

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.project
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.project?rev=784830&r1=784829&r2=784830&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.project
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.project
Mon Jun 15 15:55:33 2009
@@ -6,7 +6,7 @@
 	</projects>
 	<buildSpec>
 		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
+			<name>org.python.pydev.PyDevBuilder</name>
 			<arguments>
 			</arguments>
 		</buildCommand>
@@ -17,7 +17,7 @@
 		</buildCommand>
 	</buildSpec>
 	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
 		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.python.pydev.pythonNature</nature>
 	</natures>
 </projectDescription>

Added: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.pydevproject
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.pydevproject?rev=784830&view=auto
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.pydevproject
(added)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/.pydevproject
Mon Jun 15 15:55:33 2009
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?eclipse-pydev version="1.0"?>
+
+<pydev_project>
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
+</pydev_project>

Added: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/build.xml
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/build.xml?rev=784830&view=auto
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/build.xml
(added)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/build.xml
Mon Jun 15 15:55:33 2009
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ====================================================================== 
+     28 May 2009 17:22:02                                                        
+
+	 Ant script to build python jvmti modules  
+                   
+                                                        
+     ====================================================================== -->
+<project name="pyjvmti" default="default">
+
+
+	<target name="default">
+		
+		<fail message="required Java SDK include directory property (sdk.include.dir) is missing">
+		     <condition>
+		       <not>
+		         <isset property="sdk.include.dir"/>
+		       </not>
+		     </condition>
+		   </fail>
+
+		
+		<path id="dir">
+			<dirset dir="${sdk.include.dir}"/>
+		</path>
+		<property name="includes" refid="dir"/>
+		<javac debug="true" srcdir="." />
+
+			
+		<exec executable="python" dir="src/python">	
+			<env key="DIRS" value="${includes}"/>
+			<arg value="-u" />
+			<arg value="setup.py" />
+			<arg value="build" />
+			
+		</exec>
+
+
+	</target>
+
+
+</project>

Propchange: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jun 15 15:55:33 2009
@@ -0,0 +1 @@
+build

Added: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/setup.py
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/setup.py?rev=784830&view=auto
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/setup.py
(added)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/org.apache.kato.pyjvmti/src/python/setup.py
Mon Jun 15 15:55:33 2009
@@ -0,0 +1,37 @@
+#*******************************************************************************
+ #* Licensed under the Apache License, Version 2.0 (the "License");
+ #* you may not use this file except in compliance with the License.
+ #* You may obtain a copy of the License at
+ #* 
+ #*   http://www.apache.org/licenses/LICENSE-2.0
+ #* 
+ #* Unless required by applicable law or agreed to in writing, software
+ #* distributed under the License is distributed on an "AS IS" BASIS,
+ #* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ #* See the License for the specific language governing permissions and
+ #* limitations under the License.
+ #******************************************************************************"
+
+# This setup file is expected to be driven by the projects build.xml ant script
+from distutils.core import setup, Extension
+import os
+
+dirs=os.environ['DIRS'].split(':')
+
+print "using include path of " , dirs
+
+module1 = Extension('libpyjvmti',
+                    sources = ['../c/pyjvmti.c'])
+
+
+setup (name = 'jvmti',
+       version = '1.0',
+       description = 'JVMTI Wrapper',
+       include_dirs = dirs ,
+       url = 'http://incubator.apache.org/kato/site',
+       author = "Steve Poole" ,
+       author_email="spoole167@googlemail.com" ,
+       packages=['kato'],
+       ext_modules = [module1]
+       ) 
+



Mime
View raw message