# Packaging AGGREGATION code

**URL:** <https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590>\
**Category:** AGGREGATION\
**Created:** [October 22, 2020, 6:07pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590 "2020-10-22T18:07:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecconrad](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@ecconrad](https://delphinqa.ling.washington.edu/u/ecconrad)\
**Post date:** [October 22, 2020, 6:07pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/1 "2020-10-22T18:07:18Z")

</div>

In working with the different software for AGGREGATION (XigtifiedToolbox, MOM, aggregation/BASIL) I decided it could be useful for me to package up each of those repositories in a python distribution package that could then be installed using pip.

Would there be any objection to packaging these and uploading them to PyPi for more ease of use?

---

<div class="post-metadata">

**Author:** ![olzama](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/olzama/32/6_2.png) [@olzama](https://delphinqa.ling.washington.edu/u/olzama)\
**Post date:** [October 22, 2020, 6:35pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/2 "2020-10-22T18:35:07Z")

</div>

No objections but a warning: packaging can be time consuming and requires maintenance, particularly when there are lots of dependencies. I once tried to package MOM only to realize that the release quickly went out of date. But in general I think it is great to have something available via pip, so, good luck 🙂

---

<div class="post-metadata">

**Author:** ![arademaker](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/arademaker/32/45_2.png) [@arademaker](https://delphinqa.ling.washington.edu/u/arademaker)\
**Post date:** [October 22, 2020, 7:19pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/3 "2020-10-22T19:19:57Z")

</div>

I am curious, what are all these tools? Maybe we could add them to [http://moin.delph-in.net/ToolsTop](http://moin.delph-in.net/ToolsTop)?

---

<div class="post-metadata">

**Author:** ![goodmami](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/g/b5e925/32.png) [@goodmami](https://delphinqa.ling.washington.edu/u/goodmami)\
**Post date:** [October 23, 2020, 1:13pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/4 "2020-10-23T13:13:05Z")

</div>

@arademaker these are tools for UW’s typological inference work. A goal was to automatically fill out the Grammar Matrix based on the values inferred from linguistic examples (IGTs), but otherwise it’s not related to DELPH-IN.

@ecconrad Regarding easier installation, note that you do not need to publish on PyPI to install with `pip`. You can `pip install path/to/project/` if the path is a directory containing a `setup.py` file (`setup.py` is not the only way to define a build configuration, but it’s still the most well-known). You can also install directly from a Git repository (again, assuming it has `setup.py`). For example, I’m working on a new wordnet module that is not yet published on PyPI, so I say it can be installed like this:

```
pip install git+https://github.com/goodmami/wn.git

```

Unless you expect people outside your group to stumble upon these projects and want to try them out, publishing to PyPI is probably just extra work.

That said, I do recommend packaging projects (particularly those that are dependencies) with `setup.py` and installing them with `pip` over manually copying files, tweaking PYTHONPATH, using `setup.py install`, etc., because `pip` makes it easier to upgrade and uninstall, and it works well with virtual environments.

---

<div class="post-metadata">

**Author:** ![ebender](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/e/34f0e0/32.png) [@ebender](https://delphinqa.ling.washington.edu/u/ebender)\
**Post date:** [October 23, 2020, 2:50pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/5 "2020-10-23T14:50:29Z")

</div>

@arademaker you can find out more about the AGGREGATION project here:  
[http://depts.washington.edu/uwcl/aggregation/](http://depts.washington.edu/uwcl/aggregation/)

It doesn’t seem to be of the same type of thing as the others listed on the DelphinTools page (where even the Grammar Matrix isn’t listed…)

---

<div class="post-metadata">

**Author:** ![olzama](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/olzama/32/6_2.png) [@olzama](https://delphinqa.ling.washington.edu/u/olzama)\
**Post date:** [October 23, 2020, 3:52pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/6 "2020-10-23T15:52:42Z")

</div>

At a risk of hijacking the thread:

> [@ebender](#):
>
> (where even the Grammar Matrix isn’t listed…)

I never quite understood why the Matrix isn’t listed there, actually! In what way isn’t it a DELPH-IN tool? (AGG – sure, we do not work with DELPH-IN formalism directly there).

---

<div class="post-metadata">

**Author:** ![ebender](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/e/34f0e0/32.png) [@ebender](https://delphinqa.ling.washington.edu/u/ebender)\
**Post date:** [October 23, 2020, 4:47pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/7 "2020-10-23T16:47:36Z")

</div>

I’m not sure there was any deep reasoning behind that, but I’m guessing it’s because the Matrix was conceived of more as a kind of grammar than as a tool. But, it’s a wiki after all, and we can all edit it 🙂

---

<div class="post-metadata">

**Author:** ![arademaker](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/arademaker/32/45_2.png) [@arademaker](https://delphinqa.ling.washington.edu/u/arademaker)\
**Post date:** [October 25, 2020, 1:08am UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/8 "2020-10-25T01:08:11Z")

</div>

+1 to add Matrix and AGG project in the wiki. It seems very related to language documentation but also to grammar construction, right?

---

<div class="post-metadata">

**Author:** ![ebender](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/e/34f0e0/32.png) [@ebender](https://delphinqa.ling.washington.edu/u/ebender)\
**Post date:** [October 26, 2020, 2:40pm UTC](https://delphinqa.ling.washington.edu/t/packaging-aggregation-code/590/9 "2020-10-26T14:40:53Z")

</div>

Okay, I’ve added them 🙂
