Adding symlink to examples.

This commit is contained in:
Anton Hvornum 2020-07-08 12:34:22 +00:00
parent aecd333ea3
commit 027f6695bf
5 changed files with 29 additions and 4 deletions

View File

@ -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>
~~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
![description](https://github.com/Torxed/archinstall/raw/master/docs/description.jpg)

1
archinstall/examples Symbolic link
View File

@ -0,0 +1 @@
../examples/

5
make.sh Executable file
View File

@ -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/*'

View File

@ -1,11 +1,13 @@
import setuptools, glob
import setuptools, glob, shutil
with open("README.md", "r") as fh:
long_description = fh.read()
#shutil.copytree('examples', 'archinstall/examples')
setuptools.setup(
name="archinstall",
version="2.0.2",
version="2.0.3rc5",
author="Anton Hvornum",
author_email="anton@hvornum.se",
description="Arch Linux installer - guided, templates etc.",
@ -19,5 +21,7 @@ setuptools.setup(
"Operating System :: POSIX :: Linux",
],
python_requires='>=3.8',
data_files=[('examples', glob.glob('examples/*.py'))],
)
package_data={'archinstall': glob.glob('examples/*.py')},
)
#shutil.rmtree('archinstall/examples')

6
test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
rm -rf archinstall.egg-info/ build/ dist/
python3 setup.py sdist bdist_wheel
sudo pip install --upgrade dist/*.whl
ls -l /usr/lib/python3.8/site-packages/archinstall
#echo 'python3 -m twine upload dist/*'