Added symlinks instead of copying when building. Also mofied the __file__ path in __main__.py as it was pointing a bit off for some reason

This commit is contained in:
Anton Hvornum 2020-07-08 13:22:05 +00:00
parent 4f18ac473a
commit fc4790b33c
4 changed files with 7 additions and 9 deletions

3
.gitignore vendored
View File

@ -5,4 +5,5 @@ SAFETY_LOCK
**/**pwfile
**/**build
**/**dist
**/**.egg*
**/**.egg*
**/**.sh

View File

@ -8,7 +8,7 @@ class ProfileNotFound(BaseException):
# (I summon thee dark spawn of cPython)
def find_examples():
cwd = os.path.abspath(f'{os.path.dirname(__file__)}/../')
cwd = os.path.abspath(f'{os.path.dirname(__file__)}')
examples = f"{cwd}/examples"
return {os.path.basename(path): path for path in glob.glob(f'{examples}/*.py')}

1
archinstall/profiles Symbolic link
View File

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

View File

@ -3,11 +3,9 @@ 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.3rc5",
version="2.0.3rc6",
author="Anton Hvornum",
author_email="anton@hvornum.se",
description="Arch Linux installer - guided, templates etc.",
@ -21,7 +19,5 @@ setuptools.setup(
"Operating System :: POSIX :: Linux",
],
python_requires='>=3.8',
package_data={'archinstall': glob.glob('examples/*.py')},
)
#shutil.rmtree('archinstall/examples')
package_data={'archinstall': glob.glob('examples/*.py') + glob.glob('profiles/*.py')},
)