Code Monkey home page Code Monkey logo

Comments (3)

abaelhe avatar abaelhe commented on September 24, 2024
Update __init__.py to fix an error when build the soxr package:
move 'from .version import version as __version__' to first line, 
to prevent circular references as early as possible.

from python-soxr.

abaelhe avatar abaelhe commented on September 24, 2024
~/python-soxr $ git diff src/soxr/__init__.py
diff --git a/src/soxr/__init__.py b/src/soxr/__init__.py
index afb01c4..63e3118 100644
--- a/src/soxr/__init__.py
+++ b/src/soxr/__init__.py
@@ -3,6 +3,8 @@
 # Python-SoXR is a Python wrapper of libsoxr.
 # https://github.com/dofuuz/python-soxr

+from .version import version as __version__
+
 import warnings

 import numpy as np
@@ -12,8 +14,6 @@ from .cysoxr import cysoxr_divide_proc
 from .cysoxr import cysoxr_oneshot
 from .cysoxr import QQ, LQ, MQ, HQ, VHQ

-from .version import version as __version__
-

 # libsoxr locates memory per each channel.
 # Too much channels will cause memory error.
~/python-soxr $ git add src/soxr/__init__.py

from python-soxr.

dofuuz avatar dofuuz commented on September 24, 2024

Follow build instruction here.
https://github.com/dofuuz/python-soxr/blob/main/BUILDING.md

Triggering setup.py wouldn't work.

from python-soxr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.