# Version 1.7.6 installs the stray file /usr/local/\_\_main\_\_.py

**URL:** <https://pyfr.discourse.group/t/version-1-7-6-installs-the-stray-file-usr-local-main-py/224>\
**Category:** General\
**Created:** [21 September 2018 04:47 UTC](https://pyfr.discourse.group/t/version-1-7-6-installs-the-stray-file-usr-local-main-py/224 "2018-09-21T04:47:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuri](https://avatars.discourse-cdn.com/v4/letter/y/71c47a/32.png) [@Yuri](https://pyfr.discourse.group/u/Yuri)\
**Post date:** [21 September 2018 04:47 UTC](https://pyfr.discourse.group/t/version-1-7-6-installs-the-stray-file-usr-local-main-py/224/1 "2018-09-21T04:47:35Z")

</div>

` __main__.py` is installed directly into the `$(PREFIX)` directory. Everything should be installed either into bin/ or into the python module directory.

OS: FreeBSD 11.2

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [21 September 2018 08:44 UTC](https://pyfr.discourse.group/t/version-1-7-6-installs-the-stray-file-usr-local-main-py/224/2 "2018-09-21T08:44:47Z")

</div>

Hi Yuri,

This is correct and is required for PyFR (when built as an zip file) to  
be executable. At the time this functionality was added to PyFR they  
only way it could be made to work was by putting ` __main__.py` in the  
topmost directly.

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![Yuri](https://avatars.discourse-cdn.com/v4/letter/y/71c47a/32.png) [@Yuri](https://pyfr.discourse.group/u/Yuri)\
**Post date:** [21 September 2018 20:03 UTC](https://pyfr.discourse.group/t/version-1-7-6-installs-the-stray-file-usr-local-main-py/224/3 "2018-09-21T20:03:35Z")

</div>

PyFR now works without the top-most ` __main__.py`, so can remove it now.

The problem is that packages aren’t supposed to install anything into the PREFIX directory. I have to remove it in the FreeBSD port.
