![]() |
![]() |
|
Documentation
Resources
Support
|
Obtaining Developmental Versions of 4Suite™ via CVS
Legal NoticeThis document can be freely translated and distributed. It is released under the LDP License. AbstractThis document provides step-by step instructions for users to obtain developmental versions of 4Suite™ from the project's public CVS repository. 4Suite is a Python-based toolkit for XML and RDF application development. It features a library of integrated tools for XML processing, implementing open technologies such as DOM, RDF, XSLT, XInclude, XPointer, XLink, XPath, XUpdate, RELAX NG, and XML/SGML Catalogs. Layered upon this is an XML and RDF data repository and server, which supports multiple methods of data access, query, indexing, transformation, rich linking, and rule processing, and provides the data infrastructure of a full database system, including transactions, concurrency, access control, and management tools. It also supports HTTP (including SOAP and WebDAV), RPC, FTP, and CORBA. Table Of Contents1 Introduction and Conventions
1.1 About CVS
1.2 Conventions
3 Viewing the 4Suite CVS Repository on-line
4 Prerequisite: a standard C compiler
5 Prerequisite: Python 2.2.1 or newer
6.1 Getting a CVS Snapshot of the Source Code
6.2 Getting the Source Code with a CVS Client
6.2.1 Quick Summary for Power Users (any platform)
6.2.2 Detailed Instructions for Windows Users
6.2.3 Detailed Instructions for Unix Users
6.2.4 Notes for Cygwin Users
1 Introduction and ConventionsThis document contains instructions for using CVS to keep up-to-date with the latest 4Suite source code. There is no guarantee that this code will be free of bugs, or that it will even build, so please consider it to be of strictly "alpha" quality. 1.1 About CVSCVS is a free, mature version control system: a client/server software system that developers use to store and track changes to source code. Fourthought maintains a CVS server that allows public access, so anyone can get the same code that the developers are using to test bug fixes & feature enhancements for the next version of 4Suite. 1.2 ConventionsSome command-line examples in this document may use "$" or something like "C:\dev>" to represent the command shell prompt. The actual prompt varies from system to system, so please just consider them to be placeholders. And obviously, they aren't something that you're supposed to type. Some command-line examples in this document may use the text "SNIP" in place of a great deal of output from an instruction. 2 Mailing ListsIf you are going to be keeping up with 4Suite via CVS, then you should consider subscribing to the 4suite-dev mailing list. This is the mailing list on which the developers and other interested parties discuss issues pertaining to the development code, whereas the regular 4suite mailing list is mainly for users of release versions. You may also want to know about the 4suite-checkins mailing list. This read-only list announces each commit to the CVS repository as it is made. At times, it can be high volume, and not very interesting reading, but its archives have proven useful for quickly locating diffs and patches. 3 Viewing the 4Suite CVS Repository on-lineThe 4Suite project CVS repository can be browsed on the web at http://cvs.4suite.org/. 4 Prerequisite: a standard C compilerBefore proceeding, please note that you need an ANSI/ISO C compiler in order to build 4Suite from source. This is not a problem for most Unix users, since gcc is now standard on most POSIX platforms, including most (if not all) Linux distributions, all of the BSDs, Mac OS X, and Cygwin. Windows, however, does not come with a C compiler; if you are on this platform, you must provide your own. 4Suite's developers usually use Microsoft Visual C++ 6.0®. Other compilers are supported, but not widely tested. Please report any difficulties to the mailing list. After you have downloaded the 4Suite source code, you can invoke setup.py --help-compilers to see what compilers are supported. 5 Prerequisite: Python 2.2.1 or newerThe development version of 4Suite will not work on versions of Python older than 2.2.1. 6 Obtaining the Source CodeYou have two options for obtaining the current 4Suite source code. One option (the one we recommend) is to download the source code with a CVS client. For an end user, the main advantage to using a CVS client is that you only download the complete source code once. Thereafter, you can use the client to easily download and automatically apply patches for only the files that have changed since your last update. The other option is to use anonymous FTP to get one of the nightly CVS snapshots. A snapshot is the complete source code in one standard .tar.gz file. A new snapshot is generated daily. The downside of getting a snapshot is that you have to download an entire snapshot each time you want to get an update, and it's difficult to tell what changed. Also, if you get a snapshot, you can't just switch to using a CVS client to get updates, because you need some special files that are created only the first time you get the code via a CVS client. 6.1 Getting a CVS Snapshot of the Source CodeIf you prefer to get a CVS snapshot, then this is all you need to do:
6.2 Getting the Source Code with a CVS Client6.2.1 Quick Summary for Power Users (any platform)If you know your way around a CVS client, then here's a summary of the info you need:
The above translates to the CVSROOT :pserver:anonymous@cvs.4suite.org:/var/local/cvsroot The module to checkout is: 4Suite For example, if you are using a command-line version of CVS (e.g. standard cvs on Unix or Cygwin, or CVSNT on Windows), simply run these commands from a shell prompt, pressing Enter when prompted for a password: cvs -d:pserver:anonymous@cvs.4suite.org:/var/local/cvsroot login cvs -d:pserver:anonymous@cvs.4suite.org:/var/local/cvsroot get 4Suite A 4Suite folder will be created in the current directory, and the source code will be downloaded into it. In the future, you can get the latest changes by simply running cvs update -dP. Next step: Windows users, consult the Building 4Suite on Windows section of this document to see how to do the build. Everyone else, consult the Installing 4Suite on UNIX document. 6.2.2 Detailed Instructions for Windows Users6.2.2.1 Using Windows CVS clients to get 4Suite source codeThere are several very good CVS clients available for Windows. The sections below explain where to get and how to use the clients that the 4Suite developers recommend for Windows users. If you want to use a CVS client to download 4Suite, then please pick a client from the list below and follow the appropriate instructions.
6.2.2.1.1 TortoiseCVSTortoiseCVS is a free CVS client that works from context (right-click) menus in the Windows Explorer shell. It's quite good, sporting many more features than are mentioned here.
That's it! You now have a C:\dev\4Suite folder with all the source code. The folder and its contents will have the overlay icons, identifying the files as having come from a CVS repository. If you modify a file, the overlay icon will change. From now on, whenever you want to get the latest code, just navigate to the 4Suite folder, right-click on the folder (or in the folder window, if it's open), and choose "CVS Update". Go ahead and skip down to the Building 4Suite on Windows section of this document to see how to do the build. 6.2.2.1.2 CVSNTIf you are familiar with the command-line version of CVS, you might want to use CVSNT. CVSNT is a complete native Windows port of the standard CVS server and client, just like on Unix. You can use just the client portion of it.
That's it! You now have a C:\dev\4Suite folder with all the source code. In the future, you can get the latest changes by simply running cvs update -dP in that folder. Go ahead and skip down to the Building 4Suite on Windows section of this document to see how to do the build. 6.2.3 Detailed Instructions for Unix UsersCVS comes standard on nearly all Unix systems, so there is no extra software to install. Any user should have access to the cvs command-line client.
That's it! You now have a ~/devel/4Suite folder with all the source code. In the future, you can get the latest changes by simply running cvs update -dP in that folder. Now consult the Installing 4Suite on UNIX document to see how to do the build. 6.2.4 Notes for Cygwin UsersYou need to follow the instructions for Unix users, but first take note:
7 Building 4Suite on WindowsAs mentioned above, you need a C compiler. You also need:
Ensure that your C compiler executables are in your PATH and will run from the command line. The default compiler assumed by the installer is MS Visual C++, which uses the executable cl.exe. This compiler happens to require LIB and INCLUDE environment variables be set to point to MSVC's Lib and Include directories, respectively. Other compilers may have different requirements. You can specify a different compiler by passing an appropriate --compiler=compilerID argument to 4Suite's setup.py. To see what other compilers are supported, change to the directory where the source code was downloaded, e.g. C:\dev\4Suite, and run python setup.py --help-compilers. Once you have the compiler ready, all you have to do is this:
7.1 Test the installationYou should now be able to test the installation. Change to a directory outside of the 4Suite source, and start the Python interactive interpreter: C:\dev\4Suite>cd .. C:\dev>python Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from Ft.Xml import Domlette >>> from Ft.Xml.Xslt import Processor >>> print Processor <module 'Ft.Xml.Xslt.Processor' from 'C:\Python22\Lib\site-packages\Ft\Xml\Xslt\Processor.pyc'> >>> If there are any problems, report them on the 4suite mailing list. If all you wish to use in 4Suite are the basic command-line tools and Python libraries, then you are done with installation and can proceed to use them. To make sure things are working, try running a few of the command-line tools with the -h option to get usage information. 4xml -h 4xslt -h 4xpath -h 4rdf -h More thorough regression test suites for the 4Suite Python libraries are included with 4Suite, and you are welcome to try them out. Ideally, in a regular release version of 4Suite, they should all run to completion without errors. Warnings are OK. In alpha and beta versions or CVS snapshots, some errors are to be expected, and do not need to be reported unless the tests cannot even run to completion. C:\>cd \Python22\Share\4Suite\tests C:\>python test.py -v SNIP Be prepared for a lot of output. Omit the -v if you want somewhat less detail. You can also specify certain tests by appending the relative path to a subdirectory or .py file. If you want to use the XML/RDF repository and server features of 4Suite, then you will need to customize and install a configuration file, initialize a repository, and do some further tests. These topics are covered in the Quick Start documentation. 8 Building 4Suite on UnixThe procedure for building from source on Unix is the same, no matter how the source was obtained, and no matter whether the source is for a release or developmental version. Consult the Installing 4Suite on UNIX document to see how to do the build. 9 Resources
|
|
Home |
Copyright |
Downloads
|