diff --git a/LinearAlgebra/Angle.py b/LinearAlgebra/LinearAlgebra/Angle.py similarity index 97% rename from LinearAlgebra/Angle.py rename to LinearAlgebra/LinearAlgebra/Angle.py index bd127d9..3b37d50 100644 --- a/LinearAlgebra/Angle.py +++ b/LinearAlgebra/LinearAlgebra/Angle.py @@ -1,9 +1,17 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0.If a copy of the MPL was not distributed with this # file, You can obtain one at https ://mozilla.org/MPL/2.0/. +import sys +import os + +# Make the parent directory (root of the package) discoverable +package_directory = os.path.dirname(os.path.abspath(__file__)) +sys.path.insert(0, package_directory) import math -from .Float import * +import importlib +#from Float import * +importlib.import_module("Float") # This is in fact AngleSingle class Angle: diff --git a/LinearAlgebra/Direction.py b/LinearAlgebra/LinearAlgebra/Direction.py similarity index 100% rename from LinearAlgebra/Direction.py rename to LinearAlgebra/LinearAlgebra/Direction.py diff --git a/LinearAlgebra/Float.py b/LinearAlgebra/LinearAlgebra/Float.py similarity index 100% rename from LinearAlgebra/Float.py rename to LinearAlgebra/LinearAlgebra/Float.py diff --git a/LinearAlgebra/Quaternion.py b/LinearAlgebra/LinearAlgebra/Quaternion.py similarity index 100% rename from LinearAlgebra/Quaternion.py rename to LinearAlgebra/LinearAlgebra/Quaternion.py diff --git a/LinearAlgebra/Spherical.py b/LinearAlgebra/LinearAlgebra/Spherical.py similarity index 100% rename from LinearAlgebra/Spherical.py rename to LinearAlgebra/LinearAlgebra/Spherical.py diff --git a/LinearAlgebra/SwingTwist.py b/LinearAlgebra/LinearAlgebra/SwingTwist.py similarity index 100% rename from LinearAlgebra/SwingTwist.py rename to LinearAlgebra/LinearAlgebra/SwingTwist.py diff --git a/LinearAlgebra/Vector.py b/LinearAlgebra/LinearAlgebra/Vector.py similarity index 100% rename from LinearAlgebra/Vector.py rename to LinearAlgebra/LinearAlgebra/Vector.py diff --git a/LinearAlgebra/__init__.py b/LinearAlgebra/LinearAlgebra/__init__.py similarity index 100% rename from LinearAlgebra/__init__.py rename to LinearAlgebra/LinearAlgebra/__init__.py diff --git a/LinearAlgebra/setup.py b/LinearAlgebra/setup.py new file mode 100644 index 0000000..e13bcb3 --- /dev/null +++ b/LinearAlgebra/setup.py @@ -0,0 +1,22 @@ +from setuptools import setup, find_packages + +setup( + name='LinearAlgebra', + version='0.3.0', + packages=find_packages(), + install_requires=[ + # List your library dependencies here + ], + author='Your Name', + author_email='your.email@example.com', + description='A brief description of your library', + long_description=open('README.md').read(), + long_description_content_type='text/markdown', + url='https://github.com/yourusername/your_library', + classifiers=[ + 'Programming Language :: Python :: 3', + 'License :: OSI Approved :: MPL2.0 License', + 'Operating System :: OS Independent', + ], + python_requires='>=3.6', +)