### Install the Project Source: https://github.com/obriencj/python-javatools/blob/master/docs/overview.md Install the python-javatools module locally after building. The --user flag installs it for the current user. ```bash python -m pip install . --user ``` -------------------------------- ### Build the Project Source: https://github.com/obriencj/python-javatools/blob/master/docs/overview.md Use this command to build the python-javatools project using setuptools. Ensure you have Python and Setuptools installed. ```bash python setup.py build ``` -------------------------------- ### Build python-javatools Project Source: https://github.com/obriencj/python-javatools/blob/master/README.md Use this command to build the project using setuptools. Ensure you have setuptools installed. ```python setup.py build ``` -------------------------------- ### Install python-javatools Source: https://github.com/obriencj/python-javatools/blob/master/README.md Install the project locally using pip after building. The --user flag installs it for the current user. ```python pip install . --user ``` -------------------------------- ### Distdiff Reporting Options Source: https://github.com/obriencj/python-javatools/wiki/Profiling Example of enabling all reporting options for `distdiff` while disabling CLI output. This is useful for generating detailed reports in various formats. ```bash --report=html,json,txt --show-unchanged --show-ignored --report-dir="report" --html-copy-data="report/html" -q ``` -------------------------------- ### Build RPM from Tarball Source: https://github.com/obriencj/python-javatools/wiki/Building-as-an-RPM This command uses `rpmbuild` with the `-tb` option to build an RPM package directly from a tarball. Ensure you have the necessary build dependencies installed. ```bash $ rpmbuild -tb python-javatools-1.3.tar.gz ``` -------------------------------- ### Run Unit Tests Source: https://github.com/obriencj/python-javatools/blob/master/README.md Execute the project's unit tests using the setup.py script. For broader platform testing, consider using tox. ```python setup.py test ``` -------------------------------- ### Clean and Build Project Source: https://github.com/obriencj/python-javatools/blob/master/tests/data/README.md Run this command to clean the project and rebuild the sample Java class files. Be aware that rebuilding may alter test validity due to potential changes in compiler output. ```make make clean all ``` -------------------------------- ### Run Unit Tests Source: https://github.com/obriencj/python-javatools/blob/master/docs/overview.md Execute the unittest test cases for the python-javatools project. This command verifies the functionality of the library. ```bash python setup.py test ``` -------------------------------- ### Create Tarball from Git Tag Source: https://github.com/obriencj/python-javatools/wiki/Building-as-an-RPM Use this command to create a compressed tarball from a specific Git tag. The `--prefix` option ensures the contents are placed in a directory within the tarball, and `--format` specifies the output format. ```bash $ git archive v1.3 --prefix=python-javatools-1.3/ --format tar.gz -o python-javatools-1.3.tar.gz ``` -------------------------------- ### Profile distdiff Execution Source: https://github.com/obriencj/python-javatools/wiki/Profiling Use `cProfile` to profile the execution of the `distdiff` command. The output is saved to `profiler.dump` for later analysis. ```bash python -m cProfile -o profiler.dump $(which distdiff) [distdiff_opts...] ``` -------------------------------- ### Run Tests with Tox Source: https://github.com/obriencj/python-javatools/blob/master/docs/overview.md Invoke tests across a wider range of platforms using Tox. This is useful for ensuring compatibility with different Python environments. ```bash tox ``` -------------------------------- ### Google Analytics Tracking Script Source: https://github.com/obriencj/python-javatools/blob/master/docs/_templates/layout.html This JavaScript code is embedded in the footer to track page views using Google Analytics. It dynamically sets the script source based on the protocol and initializes the tracker. ```html {% extends "!layout.html" %} {% block footer %} {{ super() }} var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-47351906-2"); pageTracker._trackPageview(); } catch(err) {} {% endblock %} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.