Adding symlink to examples.
This commit is contained in:
parent
aecd333ea3
commit
027f6695bf
|
|
@ -100,6 +100,15 @@ This will create a *5GB* `testimage.img` and create a loop device which we can u
|
||||||
`archinstall` is installed and executed in [guided mode](#docs-todo). Once the installation is complete,<br>
|
`archinstall` is installed and executed in [guided mode](#docs-todo). Once the installation is complete,<br>
|
||||||
~~you can use qemu/kvm to boot the test media.~~ *(You'd actually need to do some EFI magic in order to point the EFI vars to the partition 0 in the test medium so this won't work entirely out of the box, but gives you a general idea of what we're going for here)*
|
~~you can use qemu/kvm to boot the test media.~~ *(You'd actually need to do some EFI magic in order to point the EFI vars to the partition 0 in the test medium so this won't work entirely out of the box, but gives you a general idea of what we're going for here)*
|
||||||
|
|
||||||
|
You can also run a pre-built ISO with pip and python
|
||||||
|
|
||||||
|
# qemu-system-x86_64 -enable-kvm -cdrom /home/user/Downloads/archlinux-2020.07.08-x86_64.iso -machine q35,accel=kvm -device intel-iommu -cpu host -m 4096 -boot order=d -drive file=./testimage.img,format=raw -drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_CODE.fd -drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_VARS.fd
|
||||||
|
|
||||||
|
and once inside, just do
|
||||||
|
|
||||||
|
# pip install archlinux
|
||||||
|
# python -m archlinux guided
|
||||||
|
|
||||||
## End note
|
## End note
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../examples/
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
rm -rf archinstall.egg-info/ build/ dist/
|
||||||
|
python3 setup.py sdist bdist_wheel
|
||||||
|
|
||||||
|
echo 'python3 -m twine upload dist/*'
|
||||||
10
setup.py
10
setup.py
|
|
@ -1,11 +1,13 @@
|
||||||
import setuptools, glob
|
import setuptools, glob, shutil
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
|
#shutil.copytree('examples', 'archinstall/examples')
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="archinstall",
|
name="archinstall",
|
||||||
version="2.0.2",
|
version="2.0.3rc5",
|
||||||
author="Anton Hvornum",
|
author="Anton Hvornum",
|
||||||
author_email="anton@hvornum.se",
|
author_email="anton@hvornum.se",
|
||||||
description="Arch Linux installer - guided, templates etc.",
|
description="Arch Linux installer - guided, templates etc.",
|
||||||
|
|
@ -19,5 +21,7 @@ setuptools.setup(
|
||||||
"Operating System :: POSIX :: Linux",
|
"Operating System :: POSIX :: Linux",
|
||||||
],
|
],
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
data_files=[('examples', glob.glob('examples/*.py'))],
|
package_data={'archinstall': glob.glob('examples/*.py')},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#shutil.rmtree('archinstall/examples')
|
||||||
Loading…
Reference in New Issue