Skip to content

Commit 405082f

Browse files
author
Tim Walsh
committed
2 parents 8566a68 + bc65911 commit 405082f

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,34 @@ Note that for directories with many files, going through the files one-by-one in
3737

3838
Due to its dependency on [Inquirer](https://github.com/magmax/python-inquirer), manual mode is not available on Windows.
3939

40+
### Dependencies
41+
42+
* [Siegfried](https://github.com/richardlehane/siegfried): For creating DROID-style CSVs. It is not necessary to have Siegfried installed on your system if you pass a DROID CSV file to addext with the `--droid_csv` flag.
43+
* [Inquirer](https://github.com/magmax/python-inquirer): For selection between extension options in `-m, --manual` mode (Linux/macOS only)
44+
45+
### Installation
46+
47+
#### Install Siegfried
48+
49+
Install Siegfried following the instructions found [here](https://github.com/richardlehane/siegfried).
50+
51+
It is not necessary to install Siegfried if you plan to use CSV files created by DROID with the `--droid_csv` flag.
52+
53+
#### Install via git clone/download
54+
55+
The easiest way to install addext.py is to clone or download this repository and then run the script with `python /path/to/addext.py [options]`.
56+
57+
If taking this route, install additional Python library dependencies: `pip install -r requirements.txt` or `pip install inquirer` (this may require sudo permissions).
58+
59+
#### Install via PyPI
60+
61+
addext can also be installed via `pip install addext`. This will install a script in the `/usr/local/bin` directory (assuming a Linux/macOS installation) so that addext can be called from anywhere with simply `addext.py [options]`.
62+
63+
Note that because addext requires the `pronom.db` database to be in the same directory as the script, this installation method requires an extra step. After `pip install addext`, find where pip installed the `pronom.db` file and either copy or link the file to `/usr/local/bin` (this will require sudo permissions):
64+
65+
* Copy: `sudo cp /path/to/pronom.db /usr/local/bin`
66+
* Create a symbolic link: `sudo ln -s /path/to/pronom.db /usr/local/bin`
67+
4068
### Updating the PRONOM file extension database
4169

4270
`pronom.db` is currently up-to-date with PRONOM release: v92
@@ -45,11 +73,5 @@ To create a new database (for instance, after a new PRONOM release):
4573
* Use Ross Spencer's [pronom-xml-export](https://github.com/timothyryanwalsh/pronom-xml-export) to download XML files for all fmt and x-fmt PUIDs.
4674
* Run `pronom-xml-to-sqlite.py` to create a new pronom.db database from the XML exports.
4775

48-
### Dependencies
49-
50-
* [Siegfried](https://github.com/richardlehane/siegfried): For creating DROID-style CSVs. It is not necessary to have Siegfried installed on your system if you pass a DROID CSV file to addext with the `--droid_csv` flag.
51-
* [Inquirer](https://github.com/magmax/python-inquirer): For selection between extension options in `-m, --manual` mode (Linux/macOS only)
52-
5376
### To do
5477
* Update script for database so it's not necessary to re-create from scratch for each release
55-
* Fix PyPI packaging (may need to remove automatic script generation - this is currently breaking the link to the `pronom.db` database unless a user with elevated permissions manually patches)

0 commit comments

Comments
 (0)