Bug 430 - default practice is to use "python setup.py develop"
Summary: default practice is to use "python setup.py develop"
Status: RESOLVED FIXED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- enhancement
Assignee: Tobias Platen
URL:
Depends on:
Blocks:
 
Reported: 2020-07-14 21:39 BST by Luke Kenneth Casson Leighton
Modified: 2020-07-28 00:07 BST (History)
2 users (show)

See Also:
NLnet milestone: ---
total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0
parent task for budget allocation:
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2020-07-14 21:39:28 BST
https://git.libre-soc.org/?p=dev-env-setup.git;a=commitdiff;h=deadc7b72ca4ba28f0ec3bb4ebae720ef2d56521

+python3 setup.py install
+cd ../nmutil
+python3 setup.py install
+cd ../ieee754fpu
+git submodule update --init --recursive
+python3 setup.py install
+cd ../nmigen-soc
+python3 setup.py install

is there a reason why "install" is used instead of the default practice,
"develop"?

"develop" allows in-place editing of the code actively under development,
whereas "install" is a forced *copying* of the code into a system-wide
location that is not in any way conveniently editable and definitely not
under source revision control management.
Comment 1 Cole Poirier 2020-07-15 00:31:35 BST
(In reply to Luke Kenneth Casson Leighton from comment #0)
> https://git.libre-soc.org/?p=dev-env-setup.git;a=commitdiff;
> h=deadc7b72ca4ba28f0ec3bb4ebae720ef2d56521
> 
> +python3 setup.py install
> +cd ../nmutil
> +python3 setup.py install
> +cd ../ieee754fpu
> +git submodule update --init --recursive
> +python3 setup.py install
> +cd ../nmigen-soc
> +python3 setup.py install
> 
> is there a reason why "install" is used instead of the default practice,
> "develop"?
> 
> "develop" allows in-place editing of the code actively under development,
> whereas "install" is a forced *copying* of the code into a system-wide
> location that is not in any way conveniently editable and definitely not
> under source revision control management.

That's not my script, I just checked and dev-env-setup/hdl-dev-repos uses the correct 'python3 setup.py develop'
Comment 2 Luke Kenneth Casson Leighton 2020-07-15 11:07:38 BST
(In reply to Cole Poirier from comment #1)

> That's not my script, I just checked and dev-env-setup/hdl-dev-repos uses
> the correct 'python3 setup.py develop'

i know.  that's why the bugreport is assigned to Tobias, who, if you
are following the daily updates, or check the git logs, you will see did
write it.

http://lists.libre-riscv.org/pipermail/libre-riscv-dev/2020-July/008560.html

https://git.libre-soc.org/?p=dev-env-setup.git;a=commitdiff;h=deadc7b72ca4ba28f0ec3bb4ebae720ef2d56521
Comment 3 Cole Poirier 2020-07-28 00:07:35 BST
Closing this as it appears to have been resolved.