Welcome to Jython 2.2a0
=======================
This is a snapshot release - it contains a mixture of 2.1 and 2.2 features.
There has been no validation of which parts of the Python 2.2 library
are functional with this release. Expect pickle and related modules to be very broken, others as well.
Use at your own discretion, and provide feedback (jython-kbutler@sabaydi.com) of which modules are broken.
It was compiled with Sun JDK 1.4, on Windows. It thus will not be
compatible with previous JDK versions, and lacks the readline library.
The installer image did not work correctly, so this is just an archive of
the CVS tree.
Major changes since Jython 2.1
========================
- iterators
- __future__ division
- multiple sql enhancements
- scoping enhancements
- os module support for system, environment, and popen functions
- jythonc basically unchanged, meaning it does not support Python 2.2 features
- generators are mostly finished in interpreter
- int-long unification (overflows return PyLong)
- many bugfixes
Test status
===========
- Passes tests in Lib/test/testall.py
- Unable to run zxjdbctests at this point
- Have not run CPython test suite
- Have not run PyXML test suite (and basically just included the distribution)
To do for 2.2a1
===============
- compile with JDK1.3 -target 1.1
- compile on linux, build readline library
- be selective on PyXML files
- identify Python 2.2 library files to include
- The installer .class file built by this process doesn't work yet - it starts up, prompts for the OS (!),
then fails to load os.properties
Build procedure
===============
3rd-party package sources:
JavaCC
License: Custom, does *NOT* allow redistribution
Only needed if you change the Jython grammar.
http://www.webgain.com/products/java_cc/
PyXML
License: Python license
Needed to copy PyXML files to jython.
http://pyxml.sourceforge.net/
Jikes
License: IBM Public License (allows redistribution)
Alternate compiler for Java code, can use classic javac compiler instead.
Selected by build.compiler = classic or build.compiler = jikes
http://oss.software.ibm.com/developerworks/opensource/jikes/
Python2.2
License: Python license
Used for python library (?) and for building documentation and installing
PyXML source.
http://www.python.org
HT2HTML
License: Python license
Used for building documentation
http://ht2html.sourceforge.net/
servlet.jar
License: Apache Software License, BSD-style
Used for building PyServlet support. Can obtain from Tomcat project, installed tomcat/common/lib/servlet.jar
http://jakarta.apache.org/tomcat/index.html
java_readline / libreadline-java.jar
License: LGPL, note that the Unix libreadline.so is GPL
Used for building Readline support (Unix only). Build as JAVAC=javac make, don't worry about errors if missing C libraries, etc., as Jython only needs the jar file to meet the Java dependencies.
http://java-readline.sourceforge.net/
Database modules, needed for building zxJDBC DataHandlers
JDBC (javax.sql)
License: Custom, distribute unmodified .jar bundled with your software
Download from java.sun.com ("JDBC 2.0 Optional Package Binary"), or just get the MySql connector below,
as it contains the jdbc2_0-stdext.jar
http://java.sun.com/products/jdbc/download.html#spec
Oracle
License: Custom, export restrictions, allows distribute to customers
Choose JDBC drivers, pick a recent Oracle version, and download classes12.zip for JDK1.2 or 1.3, classes111.zip for JDK1.1, or odjbc.jar for jdk1.4
http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
J/Connector for MySql
License: GPL
Selected 3.0, the most recent Production release.
http://www.mysql.com/downloads/api-jdbc-stable.html
PostgreSQL
License: BSD
Get the pg73jdbc1.jar (Want to preserve JDK1.1 compatibility)
http://jdbc.postgresql.org/
Informix
License: Custom, strange - can make "copies to support the level of use authorized" whatever that means
Download the JDBC drivers, extract, run java -jar setup.jar
http://www-3.ibm.com/software/data/informix/tools/jdbc/
LiftOff Installer
License: GPL
Download via CVS
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/liftoff login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/liftoff co liftoff
--------------------
Building jython:
ant dist
# if you ever do ant clean, you'll need to do
# cvs upd -APd
# to get back the PythonGrammar* classes (clean removes them)
# unless you've installed javacc
--------------------
Jython tests:
# you'll need ~200 MB of RAM + swap for some of these tests
# If using a JRE, need to add a path to a JDK's tools.jar
# set JYTHON_JAVA_ARGS -Dtoolsjar=d:/pipeline/products/jdk/lib/tools.jar
# The javashell test is sensitive to other output from your jython script,
# and to multiple layers of script wrapping. Best to ensure that
# $JYTHONCVS/jython is the first 'jython' in yuor PATH.
export JYTHONCVS=d:/kb/jython_src
export PATH="$JYTHONCVS:$PATH"
cd $JYTHONCVS/Lib/test/javatests
javac -d .. *.java
cd ..
jythoncvs testall.py 2&>1 | tee testouput
#### before complaining that tests don't pass, make sure that you're running
#### with the CVS version of Jython! (especially if the pow() test fails to throw TypeError)
--------------------
Initialize Postgres on NT notes (skip to just run test):
export LANG=
export PGDATA=/var/lib/pgsql/data
export PATH="/usr/local/bin:$PATH"
#install cygipc 1.13 (deprecated, but necessary) from
# http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/
ipc-daemon &
rm -rf $PGDATA
initdb #(slow)
/bin/postmaster -i -D $PGDATA &
createdb ziclix
--------------------
Initialize MySQL on NT notes (skip to just run test):
net start mysql
mysql/bin/MySqlAdministrator
double-click on MySql, enter connection info, OK
as a SQL query, enter:
create database ziclix
then press the "play" button. Don't expect any feedback...
(could also just create a ziclix directory under the mysql/data)
--------------------
#################### Run zxjdbc test ####################
cd $JYTHONCVS/Lib/test/zxjdbc
# customize test.xml, setting:
# - hosts & ports as needed
# - usernames & passwords as needed
# - !!! Change org.gjt paths to paths in new MySQL drivers
export LANG=
export PGDATA=/var/lib/pgsql/data
export PATH="/usr/local/bin:$PATH"
ipc-daemon &
/bin/postmaster -i -D $PGDATA &
export CLASSPATH="d:/kb/jython_3rdparty/jdbc2_0-stdext.jar;d:/kb/jython_3rdparty/pg73jdbc1.jar"
jythoncvs runner.py test.xml postgresql 2&>1 | tee ../jdbctestoutput.new
net start mysql
export CLASSPATH="d:/kb/jython_3rdparty/jdbc2_0-stdext.jar;d:/kb/jython_3rdparty/mysql-connector-java-3.0.7-stable/mysql-connector-java-3.0.7-stable-bin.jar"
jythoncvs runner.py test.xml mysql 2&>1 | tee -a ../jdbctestoutput.new
--------------------
Building liftoff
Make sure you get liftoff CVS.
Here's how to build it:
liftoff=d:/kb/jython_3rdparty/liftoff
cd $liftoff/src
CLASSPATH="../lib/ant.jar;../lib/xml.jar" ant -f bootstrap.xml
CLASSPATH="../lib/ant.jar;../lib/xml.jar;../lib/LiftOffAnt.jar" ant
# MODIFY ../data/builder.properties to change the /home/andi/projekte/
# to d:/kb/jython_3rdparty/ (or wherever your liftoff tree lives)
# MODIFY build.xml to copy .gif files in compile-builder
<copydir src="${src.builder}"
dest="${build.builder}"
includes="**/*.gif"/>
CLASSPATH="../lib/ant.jar;../lib/xml.jar;../lib/LiftOffAnt.jar" ant
--------------------
Building Jython's installer
cd $JYTHONCVS
python installer/mklist.py > installer/liftoff.filelist
# UPDATE the product.version in liftoff.props (to something -custom)
# UPDATE the destination.package_prefix (to something appropriate)
# UPDATE PySystemState.version (to the something -custom)
java -Ddatadir=$liftoff/data -cp $liftoff/lib/LiftOff.jar net.sourceforge.liftoff.builder.Main
File|Open # may have to do it twice - I get NullPointerException the first time
installer/liftoff.props
Create|Class
OK
The mouse doesn't "click" some buttons in the "Builder" GUI (use Ent
没有合适的资源?快使用搜索试试~ 我知道了~
tinyos1.1.zip_TinyOS1.1
共4945个文件
class:1377个
nc:1304个
java:906个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 57 浏览量
2022-07-13
20:15:53
上传
评论
收藏 23.97MB ZIP 举报
温馨提示
TinyOS1.X系统源码,适合无线传感网络学习者使用
资源推荐
资源详情
资源评论
收起资源包目录
tinyos1.1.zip_TinyOS1.1 (4945个子文件)
.#install-snapshots.html.in.1.1 5KB
.#Makefile.1.2 74B
.#Makefile.CYGWIN.1.5 393B
.#install-snapshots.html.1.8 5KB
6port.a43 881B
ramtest.a43 394B
ACKNOWLEDGMENTS 2KB
ADC_README 4KB
ADDING-TESTS 1KB
Makefile.am 2KB
Makefile.am 2KB
app 212B
app 180B
app 66B
app 63B
AUTHORS 716B
test.autorun 2KB
sample.autorun 789B
bashrc 932B
bootstrap 73B
build-data-dir 611B
build-data-dir 548B
build-mspgcc 6KB
app.c 162KB
app.c 141KB
app.c 77KB
app.c 49KB
app.c 42KB
app.c 42KB
DAPA.C 29KB
external_comm.c 28KB
Stk500.C 27KB
AvrAtmel.C 19KB
inpisp.c 19KB
AvrStargate.C 17KB
AvrDummy.C 17KB
serialsource.c 16KB
rfm_model.c 16KB
rfm_model.c 15KB
Main.C 15KB
hpl.c 14KB
pavr.c 14KB
snd_bundle.c 14KB
bootloader.c 13KB
MotIntl.C 12KB
Avr.C 11KB
packet_sim.c 10KB
channelgen.c 10KB
async_rcvr.c 9KB
MICA.c 9KB
I2CSPI.c 9KB
polling_rcvr.c 8KB
stargate_ssp.c 8KB
tinydb_listen.c 8KB
Serial.C 7KB
heap.c 6KB
DTNStubImp.c 6KB
sf.c 6KB
raw_listen.c 6KB
eeprom.c 6KB
uartByte.c 5KB
heap_array.c 5KB
Terminal.C 5KB
sched.c 5KB
SASA.C 4KB
uartDebugServer.c 4KB
adc_model.c 4KB
hardware.c 4KB
msp_flash.c 4KB
event_queue.c 4KB
sfsource.c 3KB
tos.c 3KB
dbg.c 3KB
cygwinp.C 3KB
adjacency_list.c 3KB
snoop.c 3KB
spatial_model.c 3KB
events.c 2KB
uartDebugParser.c 2KB
avr_flash.c 2KB
LG_sleep.c 2KB
seriallisten.c 990B
sflisten.c 700B
net_tinyos_util_Env.c 499B
platform.c 65B
SendContext.cdf 4KB
MergeContext.cdf 3KB
RecvContext.cdf 3KB
ClockContext.cdf 3KB
ResolveContext.cdf 3KB
StartContext.cdf 3KB
OnceContext.cdf 3KB
Timer0Context.cdf 292B
Timer1Context.cdf 292B
ChangeLog 16KB
ChangeLog 11KB
CHANGES 9KB
PythonGrammar.class 82KB
QueryMsg.class 46KB
CodeCompiler.class 43KB
共 4945 条
- 1
- 2
- 3
- 4
- 5
- 6
- 50
资源评论
weixin_42653672
- 粉丝: 93
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功