# Customize Installation directories

**URL:** https://discuss.python.org/t/customize-installation-directories/3433
**Category:** Python Help
**Created:** [February 24, 2020, 8:56am UTC](https://discuss.python.org/t/customize-installation-directories/3433 "2020-02-24T08:56:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![CatorCanulis](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CatorCanulis](https://discuss.python.org/u/CatorCanulis)
#### Post date: [February 24, 2020, 8:56am UTC](https://discuss.python.org/t/customize-installation-directories/3433/1 "2020-02-24T08:56:41Z")

</div>

Hi everyone,

I already managed to compile and install python in my home directory. As you would expect, all I had to to was to

`. /configure - -prefix=$HOME/Python`

I noticed, that you also have the opportunity to specify certain subdirectories to the prefix dir. E.g. “Binaries” instead of “bin” or “Libraries” instead of “lib”. Of course this is pretty non standard and definitely not neccesarry. But I would like to do it anyways because it just fells more tidy for me.

The problem: Giving options like `--bindir=$HOME/Pyhton/Binaries` does create the directory “Binaries” but “bin” is also created, containing pip. The same goes for “lib” and “include”. Did I miss anything that’s not in the options for. /configure or do I have to go deeper and edit even the Makefile?

Thanks in advance  
Markus

---

<div class="post-metadata">

### Author: ![uranusjr](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/uranusjr/32/103_2.png) [@uranusjr](https://discuss.python.org/u/uranusjr)
#### Post date: [February 24, 2020, 10:29am UTC](https://discuss.python.org/t/customize-installation-directories/3433/2 "2020-02-24T10:29:22Z")

</div>

I vaguely recalls (but can’t find it) a ticket somewhere describing that `ensurepip` in the build script is run against the wrong Python interpreter. Try skip that (`./configure --without-ensurepip`) and run ensurepip manually after installation.

---

<div class="post-metadata">

### Author: ![CatorCanulis](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CatorCanulis](https://discuss.python.org/u/CatorCanulis)
#### Post date: [February 25, 2020, 10:25am UTC](https://discuss.python.org/t/customize-installation-directories/3433/3 "2020-02-25T10:25:12Z")

</div>

That did the Trick for the ˋbin/ˋ directory. Setting ˋ–exec-prefix=$prefix/Headersˋ had ˋpyconfig.hˋ placed alongside the other header files. But still in an ˋinclude/ˋ directory.

Unfortunately ˋlib/ˋ still exists, containing files like ˋzipapp.pyˋ and ˋwebbrowser.pyˋ.

There don’t seem to be any options controlling this properly so I think I’ll have to edit the Makefile.

---

<div class="post-metadata">

### Author: ![uranusjr](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/uranusjr/32/103_2.png) [@uranusjr](https://discuss.python.org/u/uranusjr)
#### Post date: [February 25, 2020, 10:58am UTC](https://discuss.python.org/t/customize-installation-directories/3433/4 "2020-02-25T10:58:47Z")

</div>

I would suggest filing an issue on [bugs.python.org](http://bugs.python.org). Either you missed something, or this is a straight up bug; people there would be able to answer (and some documentation improvements are possible even if this is not a bug).

---

<div class="post-metadata">

### Author: ![CatorCanulis](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CatorCanulis](https://discuss.python.org/u/CatorCanulis)
#### Post date: [February 25, 2020, 12:22pm UTC](https://discuss.python.org/t/customize-installation-directories/3433/5 "2020-02-25T12:22:45Z")

</div>

Will do. Thanks a lo anyways.

I think it is a really minor cosmetic bug. Who really wants to customize these subdirectories? It kind off goes against the simplicity of the nix world.

On the other hand: I like linux so much because it enables you to fully customize your system. So it would be a nice touch.
