<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Setuptools on the art of simplicity</title><link>https://naoko.github.io/tags/setuptools/</link><description>Recent content in Setuptools on the art of simplicity</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 05 Mar 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://naoko.github.io/tags/setuptools/index.xml" rel="self" type="application/rss+xml"/><item><title>Python Project Install - develop vs install &amp; setuptools vs pip</title><link>https://naoko.github.io/posts/2018-03-05-your-project-install-pip-setup/</link><pubDate>Mon, 05 Mar 2018 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2018-03-05-your-project-install-pip-setup/</guid><description>&lt;h3 id="the-problem"&gt;The problem:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I don&amp;rsquo;t understand the difference between &lt;code&gt;setup.py develop&lt;/code&gt; and &lt;code&gt;setup.py install&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;I don&amp;rsquo;t understand the difference between &lt;code&gt;setup.py develop&lt;/code&gt; and &lt;code&gt;pip install -e [dir]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;I don&amp;rsquo;t see the changes to my code when I import my code&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="the-difference-between-setuppy-develop-and-setuppy-install"&gt;The difference between &lt;code&gt;setup.py develop&lt;/code&gt; and &lt;code&gt;setup.py install&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;In short, you want to run &lt;code&gt;setup.py develop&lt;/code&gt; when you are editing code because when you run
&lt;code&gt;setup.py install&lt;/code&gt;, it will copy your code into &lt;code&gt;site-packages&lt;/code&gt; thus if you want to test your
latest code you will need to &lt;code&gt;install&lt;/code&gt; (copy) again. On the other hand, with &lt;code&gt;develop&lt;/code&gt;, it creates
a link to your source code so that when you import your code, it is your latest code.&lt;/p&gt;</description></item></channel></rss>